From 45d0f7946798b1d8a6effc1bd526beb0c61f076e Mon Sep 17 00:00:00 2001 From: Niall Creech Date: Mon, 22 Aug 2016 19:09:16 +0100 Subject: [PATCH] Rename S3 bucket output to be consistent When we create cloudformation things we can create Outputs that represent them, which then get turned into grains, meaning that we can do lookups on randomly named resources. The buckets that are created have 2 things, a name, and a policy. The output for the S3 bucket currently is named like it references the policy, but actually it references the name. This change makes it more coherent with the form 'BucketName'. --- bootstrap_cfn/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap_cfn/config.py b/bootstrap_cfn/config.py index 0364e77..07fde4a 100644 --- a/bootstrap_cfn/config.py +++ b/bootstrap_cfn/config.py @@ -464,7 +464,7 @@ def create_s3_bucket(self, bucket_config, template): # Add the bucket name to the list of cloudformation # outputs template.add_output(Output( - "{}Policy".format(bucket_name), + "{}BucketName".format(bucket_name), Description="S3 bucket name", Value=Ref(bucket) ))