Skip to content

Commit

Permalink
feat: add root stack description to the root stack in the initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
kaustavghosh06 committed Nov 22, 2020
1 parent 7290ca1 commit 0f14c89
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/amplify-provider-awscloudformation/src/initializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,18 @@ async function run(context) {
stackName = verifiedStackName;
const authRoleName = `${stackName}-authRole`;
const unauthRoleName = `${stackName}-unauthRole`;

let nestedStack = JSON.parse(fs.readFileSync(initTemplateFilePath).toString());
// Track Amplify Console generated stacks
if (!!process.env.CLI_DEV_INTERNAL_DISABLE_AMPLIFY_APP_DELETION) {
nestedStack.Description = 'Root Stack for AWS Amplify Console';
}
nestedStack = JSON.stringify(nestedStack);

const params = {
StackName: stackName,
Capabilities: ['CAPABILITY_NAMED_IAM', 'CAPABILITY_AUTO_EXPAND'],
TemplateBody: fs.readFileSync(initTemplateFilePath).toString(),
TemplateBody: nestedStack,
Parameters: [
{
ParameterKey: 'DeploymentBucketName',
Expand Down

0 comments on commit 0f14c89

Please sign in to comment.