Add different stages and different variablesfor each stage on your gothic-config.json.
{
"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}}"
}
}
}
}
} After that you can deploy the same app In different stages with a simple command:
$ make deploy STAGE=yourCustomStage Want to protect your app with a Web Application Firewall?