From c6715a6372deb1799222b6cd6e4799bba75cc85e Mon Sep 17 00:00:00 2001 From: Maksym Pavlenko Date: Sat, 8 Dec 2018 14:32:52 -0800 Subject: [PATCH] Use CF stack name for prefix instead of parameter --- cf/podsync.yaml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/cf/podsync.yaml b/cf/podsync.yaml index 6d841a4..6cf3740 100644 --- a/cf/podsync.yaml +++ b/cf/podsync.yaml @@ -1,10 +1,4 @@ AWSTemplateFormatVersion: "2010-09-09" -Parameters: - Prefix: - Type: String - Default: "Prod" - MinLength: 1 - Description: "Prefix to be added to all resources" Outputs: AccessKey: Description: "DO user access key" @@ -16,7 +10,7 @@ Resources: FeedsTable: Type: AWS::DynamoDB::Table Properties: - TableName: !Sub "${Prefix}_Feeds" + TableName: !Sub "${AWS::StackName}_Feeds" BillingMode: "PROVISIONED" AttributeDefinitions: - AttributeName: "HashID" @@ -49,7 +43,7 @@ Resources: PledgesTable: Type: AWS::DynamoDB::Table Properties: - TableName: !Sub "${Prefix}_Pledges" + TableName: !Sub "${AWS::StackName}_Pledges" BillingMode: "PROVISIONED" AttributeDefinitions: - AttributeName: "PatronID"