From fe5ef9f91c4eb0b601fd3036fe1ca9da08356f9c Mon Sep 17 00:00:00 2001 From: piyush-sinha Date: Wed, 26 Feb 2020 21:18:09 +0530 Subject: [PATCH] [ch3990] | Piyush & Abhishek | Extract aws_access field name from deployment manifest --- sample_infra_manifest.json | 5 ++--- types.go | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/sample_infra_manifest.json b/sample_infra_manifest.json index 12efedf..5792bc5 100644 --- a/sample_infra_manifest.json +++ b/sample_infra_manifest.json @@ -1,6 +1,6 @@ { "extraResources": { - "environment": "nonprod", + "environment": "dev", "database": { "instanceName": "auth-service", "user": "auth_service_user", @@ -8,8 +8,7 @@ "sizeInGb": 7, "dbNames": ["auth_service"] }, - "service_role": { - "name": "auth-navi-service-role", + "aws_access": { "policies": [ { "actions": ["s3:GetObject","s3:PutObject"], diff --git a/types.go b/types.go index dba5743..e4a7b36 100644 --- a/types.go +++ b/types.go @@ -24,8 +24,8 @@ type Manifest struct { type ExtraResources struct { Environment string `json:"environment"` Workspace string - Database Database `json:"database"` - ServiceRole ServiceRole `json:"service_role"` + Database Database `json:"database"` + ServiceRole ServiceRole `json:"aws_access"` } //We provide defaults in respective terraforms instead of here to keep all values at one place