Gothic Framework G symbol

Secure your Environment Variables

You can get variables directly from AWS Parameter Store from the template using the resolve:ssm as shown below.

{
 	"projectName" : "gothic-example" ,
 	"goModuleName" : "github.com/felipegenef/gothicframework/v2" ,
 	"optimizeImages" : {
 		"lowResolutionRate" :  20 ,
 	 }
 	"deploy" : {
 		"serverMemory" :  128 ,
 		"serverTimeout" :  30 ,
 		"region" :  "us-east-1" ,
 		"customDomain" :  false ,
 		"profile" :  "default" ,
 		"stages" : {
 			"dev" : {
 				"hostedZoneId" :  null ,
 				"customDomain" :  null ,
 				"certificateArn" :  null ,
 				"wafArn" :  null ,
 				"env" : {
 					"MyEnvVar1" :  "{{resolve:ssm:/gothicframework/dev/my-env-var-1}}" 
				}
 			 },
 			"qa" : {
 				"hostedZoneId" :  null ,
 				"customDomain" :  null ,
 				"certificateArn" :  null ,
 				"wafArn" :  null ,
 				"env" : {
 					"MyEnvVar1" :  "{{resolve:ssm:/gothicframework/qa/my-env-var-1}}" 
				}
 			 },
 			"prod" : {
 				"hostedZoneId" :  null ,
 				"customDomain" :  null ,
 				"certificateArn" :  null ,
 				"wafArn" :  null ,
 				"env" : {
 					"MyEnvVar1" :  "{{resolve:ssm:/gothicframework/prod/my-env-var-1}}" 
				}
 			 }
		}
 	}
 } 

Did you like this session of how to deploy your app with secure environment variables per stage? Check out how to deploy your app with all the Deploy commands!