Skip to content

Commit

Permalink
Change add_description to set_description in all examples (cloudtools…
Browse files Browse the repository at this point in the history
  • Loading branch information
jake-billings authored and Dave Masino committed Oct 17, 2019
1 parent 9490c3d commit 8835428
Show file tree
Hide file tree
Showing 47 changed files with 47 additions and 47 deletions.
2 changes: 1 addition & 1 deletion examples/ApplicationELB.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def main():
template = Template()
template.add_version("2010-09-09")

template.add_description(
template.set_description(
"AWS CloudFormation Sample Template: ELB with 2 EC2 instances")

AddAMI(template)
Expand Down
2 changes: 1 addition & 1 deletion examples/Autoscaling.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

t = Template()

t.add_description("""\
t.set_description("""\
Configures autoscaling group for api app""")

SecurityGroup = t.add_parameter(Parameter(
Expand Down
2 changes: 1 addition & 1 deletion examples/AutoscalingHTTPRequests.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

t = Template()

t.add_description("""\
t.set_description("""\
Configures autoscaling group for api app""")

SecurityGroup = t.add_parameter(Parameter(
Expand Down
2 changes: 1 addition & 1 deletion examples/CloudFormation_Init_ConfigSet.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

t = Template()

t.add_description("Configures an EC2 instance using cfn-init configsets")
t.set_description("Configures an EC2 instance using cfn-init configsets")

key_name = t.add_parameter(Parameter(
'KeyName',
Expand Down
2 changes: 1 addition & 1 deletion examples/CloudFront_Distribution_S3.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

t = Template()

t.add_description(
t.set_description(
"AWS CloudFormation Sample Template CloudFront_S3: Sample template "
"showing how to create an Amazon CloudFront distribution using an "
"S3 origin. "
Expand Down
2 changes: 1 addition & 1 deletion examples/CloudFront_StreamingDistribution_S3.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

t = Template()

t.add_description(
t.set_description(
"AWS CloudFormation Sample Template CloudFront_S3: Sample template "
"showing how to create an Amazon CloudFront Streaming distribution "
"using an S3 origin. "
Expand Down
2 changes: 1 addition & 1 deletion examples/CustomResource.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class CustomPlacementGroup(AWSCustomObject):

t = Template()

t.add_description(
t.set_description(
"Example template showing how a Lambda Function CustomResource might look"
"For information on AWS Lambda-backed Custom Resources see:"
"http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/"
Expand Down
2 changes: 1 addition & 1 deletion examples/DynamoDB_Table.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

t = Template()

t.add_description("AWS CloudFormation Sample Template: This template "
t.set_description("AWS CloudFormation Sample Template: This template "
"demonstrates the creation of a DynamoDB table.")

hashkeyname = t.add_parameter(Parameter(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

template = Template()

template.add_description("Create a dynamodb table with a global secondary "
template.set_description("Create a dynamodb table with a global secondary "
"index")
# N.B. If you remove the provisioning section this works for
# LocalSecondaryIndexes aswell.
Expand Down
2 changes: 1 addition & 1 deletion examples/DynamoDB_Table_With_GlobalSecondaryIndex.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

template = Template()

template.add_description("Create a dynamodb table with a global secondary "
template.set_description("Create a dynamodb table with a global secondary "
"index")
# N.B. If you remove the provisioning section this works for
# LocalSecondaryIndexes aswell.
Expand Down
2 changes: 1 addition & 1 deletion examples/DynamoDB_Tables_OnDemand.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

template = Template()

template.add_description("Create two dynamodb tables with "
template.set_description("Create two dynamodb tables with "
"conditional on-demand billing. One "
"with global secondary index and one without")

Expand Down
2 changes: 1 addition & 1 deletion examples/ELBSample.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def main():
template = Template()
template.add_version("2010-09-09")

template.add_description(
template.set_description(
"AWS CloudFormation Sample Template: ELB with 2 EC2 instances")

AddAMI(template)
Expand Down
2 changes: 1 addition & 1 deletion examples/EMR_Cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def generate_rules(rules_name):


template = Template()
template.add_description(
template.set_description(
"Sample CloudFormation template for creating an EMR cluster"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/ElastiCacheRedis.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def main():
template = Template()

# Description
template.add_description(
template.set_description(
'AWS CloudFormation Sample Template ElastiCache_Redis:'
'Sample template showing how to create an Amazon'
'ElastiCache Redis Cluster. **WARNING** This template'
Expand Down
2 changes: 1 addition & 1 deletion examples/ElasticBeanstalk_Nodejs_Sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

t.add_version()

t.add_description(
t.set_description(
"AWS CloudFormation Sample Template ElasticBeanstalk_Nodejs_Sample: "
"Configure and launch the AWS Elastic Beanstalk sample application. "
"**WARNING** This template creates one or more Amazon EC2 instances. You "
Expand Down
2 changes: 1 addition & 1 deletion examples/ElasticsearchDomain.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

templ = Template()

templ.add_description('Elasticsearch Domain example')
templ.set_description('Elasticsearch Domain example')

es_domain = templ.add_resource(Domain(
'ElasticsearchDomain',
Expand Down
2 changes: 1 addition & 1 deletion examples/Firehose_with_Redshift.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

t = Template()
t.add_version('2010-09-09')
t.add_description('Sample Kinesis Firehose Delivery Stream')
t.set_description('Sample Kinesis Firehose Delivery Stream')

t.add_resource(DeliveryStream(
'MyDeliveryStream',
Expand Down
2 changes: 1 addition & 1 deletion examples/IAM_Policies_SNS_Publish_To_SQS.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

t = Template()

t.add_description("AWS CloudFormation Sample Template: This template "
t.set_description("AWS CloudFormation Sample Template: This template "
"demonstrates the creation of a DynamoDB table.")

sqsqueue = t.add_resource(Queue("SQSQueue"))
Expand Down
2 changes: 1 addition & 1 deletion examples/IAM_Roles_and_InstanceProfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

t = Template()

t.add_description("AWS CloudFormation Sample Template: This template "
t.set_description("AWS CloudFormation Sample Template: This template "
"demonstrates the creation of IAM Roles and "
"InstanceProfiles.")

Expand Down
2 changes: 1 addition & 1 deletion examples/IAM_Users_Groups_and_Policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

t = Template()

t.add_description("AWS CloudFormation Sample Template: This template "
t.set_description("AWS CloudFormation Sample Template: This template "
"demonstrates the creation of IAM User/Group.")

cfnuser = t.add_resource(User(
Expand Down
2 changes: 1 addition & 1 deletion examples/Metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

t = Template()

t.add_description("Example to show adding a Metadata section to the template")
t.set_description("Example to show adding a Metadata section to the template")
t.add_metadata({
"Comments": "Initial Draft",
"LastUpdated": "Jan 1st 2015",
Expand Down
2 changes: 1 addition & 1 deletion examples/NatGateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

t = Template()

t.add_description(
t.set_description(
"AWS CloudFormation Sample Template NatGateway: Sample template showing "
"how to create a public NAT gateway. "
"**WARNING** This template creates an Amazon NAT gateway. "
Expand Down
2 changes: 1 addition & 1 deletion examples/NetworkLB.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def main():
template = Template()
template.add_version("2010-09-09")

template.add_description(
template.set_description(
"AWS CloudFormation Sample Template: NLB with 1 EC2 instance")

AddAMI(template)
Expand Down
2 changes: 1 addition & 1 deletion examples/RDS_Snapshot_On_Delete.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

t.add_version("2010-09-09")

t.add_description(
t.set_description(
"AWS CloudFormation Sample Template RDS_Snapshot_On_Delete: Sample "
"template showing how to create an RDS DBInstance that is snapshotted on "
"stack deletion. **WARNING** This template creates an Amazon RDS database "
Expand Down
2 changes: 1 addition & 1 deletion examples/RDS_VPC.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

t = Template()

t.add_description(
t.set_description(
"AWS CloudFormation Sample Template VPC_RDS_DB_Instance: Sample template "
"showing how to create an RDS DBInstance in an existing Virtual Private "
"Cloud (VPC). **WARNING** This template creates an Amazon Relational "
Expand Down
2 changes: 1 addition & 1 deletion examples/RDS_with_DBParameterGroup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

t = Template()

t.add_description(
t.set_description(
"AWS CloudFormation Sample Template RDS_with_DBParameterGroup: Sample "
"template showing how to create an Amazon RDS Database Instance with "
"a DBParameterGroup.**WARNING** This template creates an Amazon "
Expand Down
2 changes: 1 addition & 1 deletion examples/Redshift.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

t.add_version("2010-09-09")

t.add_description(
t.set_description(
"AWS CloudFormation Sample Template: Redshift cluster")

dbname = t.add_parameter(Parameter(
Expand Down
2 changes: 1 addition & 1 deletion examples/RedshiftClusterInVpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

t.add_version("2010-09-09")

t.add_description(
t.set_description(
"AWS CloudFormation Sample Template: Redshift cluster in a VPC")

dbname = t.add_parameter(Parameter(
Expand Down
2 changes: 1 addition & 1 deletion examples/Route53_A.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

t = Template()

t.add_description(
t.set_description(
"AWS CloudFormation Sample Template Route53_A: "
"Sample template showing how to create an Amazon Route 53 A record that "
"maps to the public IP address of an EC2 instance. It assumes that you "
Expand Down
2 changes: 1 addition & 1 deletion examples/Route53_CNAME.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

t = Template()

t.add_description(
t.set_description(
"AWS CloudFormation Sample Template Route53_CNAME: Sample template "
"showing how to create an Amazon Route 53 CNAME record. It assumes that "
"you already have a Hosted Zone registered with Amazon Route 53. "
Expand Down
2 changes: 1 addition & 1 deletion examples/Route53_RoundRobin.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

t = Template()

t.add_description(
t.set_description(
"AWS CloudFormation Sample Template Route53_RoundRobin: Sample template "
"showing how to use weighted round robin (WRR) DNS entried via Amazon "
"Route 53. This contrived sample uses weighted CNAME records to "
Expand Down
2 changes: 1 addition & 1 deletion examples/S3_Bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

t = Template()

t.add_description(
t.set_description(
"AWS CloudFormation Sample Template S3_Bucket: Sample template showing "
"how to create a publicly accessible S3 bucket. "
"**WARNING** This template creates an Amazon S3 Bucket. "
Expand Down
2 changes: 1 addition & 1 deletion examples/S3_Bucket_With_AccelerateConfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

t = Template()

t.add_description(
t.set_description(
"AWS CloudFormation Sample Template S3_Bucket: Sample template showing :"
"How to create a publicly accessible S3 bucket. "
"How to enable S3 Transfer Acceleration. "
Expand Down
2 changes: 1 addition & 1 deletion examples/S3_Bucket_With_Versioning_And_Lifecycle_Rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

t = Template()

t.add_description(
t.set_description(
"AWS CloudFormation Sample Template S3_Bucket: Sample template showing :"
"How to create a publicly accessible S3 bucket. "
"How to enable bucket object versions. "
Expand Down
2 changes: 1 addition & 1 deletion examples/S3_Website_Bucket_With_Retain_On_Delete.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

t = Template()

t.add_description(
t.set_description(
"AWS CloudFormation Sample Template "
"S3_Website_Bucket_With_Retain_On_Delete: Sample template showing how to "
"create a publicly accessible S3 bucket configured for website access "
Expand Down
2 changes: 1 addition & 1 deletion examples/SQSDLQ.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

t = Template()

t.add_description(
t.set_description(
"AWS CloudFormation Sample Template SQS: Sample template showing how to "
"create an SQS queue with a dead letter queue. **WARNING** This template "
"creates Amazon SQS Queues. You will be billed for the AWS resources used "
Expand Down
2 changes: 1 addition & 1 deletion examples/SQSEncrypt.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

t = Template()

t.add_description(
t.set_description(
"AWS CloudFormation Sample Template SQS: Sample template showing how to "
"create an SQS queue with Server Side Encryption. **WARNING** This "
"template creates Amazon SQS Queues. You will be billed for the AWS "
Expand Down
2 changes: 1 addition & 1 deletion examples/SQS_With_CloudWatch_Alarms.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

t = Template()

t.add_description(
t.set_description(
"AWS CloudFormation Sample Template SQS_With_CloudWatch_Alarms: Sample "
"template showing how to create an SQS queue with AWS CloudWatch alarms "
"on queue depth. **WARNING** This template creates an Amazon SQS Queue "
Expand Down
2 changes: 1 addition & 1 deletion examples/SSMExample.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import troposphere.ssm as ssm

t = Template()
t.add_description("2012-09-09")
t.set_description("2012-09-09")

rhel_patch_group_name = t.add_parameter(Parameter(
"RHELPatchGroupName",
Expand Down
2 changes: 1 addition & 1 deletion examples/Serverless_Api_Backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

t = Template()

t.add_description(
t.set_description(
"Simple CRUD webservice. State is stored in a SimpleTable (DynamoDB) "
"resource.")

Expand Down
2 changes: 1 addition & 1 deletion examples/Serverless_Deployment_Preference.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

t = Template()

t.add_description(
t.set_description(
"A function that uses the configured traffic shifting type "
"for a canary deployment.")

Expand Down
2 changes: 1 addition & 1 deletion examples/Serverless_S3_Processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

t = Template()

t.add_description(
t.set_description(
"A function is triggered off an upload to a bucket. It logs the content "
"type of the uploaded object.")

Expand Down
2 changes: 1 addition & 1 deletion examples/VPC_With_VPN_Connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

t.add_version("2010-09-09")

t.add_description("""\
t.set_description("""\
AWS CloudFormation Sample Template VPC_With_VPN_Connection.template: \
Sample template showing how to create a private subnet with a VPN connection \
using static routing to an existing VPN endpoint. NOTE: The VPNConnection \
Expand Down
2 changes: 1 addition & 1 deletion examples/VPC_single_instance_in_subnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

t.add_version('2010-09-09')

t.add_description("""\
t.set_description("""\
AWS CloudFormation Sample Template VPC_Single_Instance_In_Subnet: Sample \
template showing how to create a VPC and add an EC2 instance with an Elastic \
IP address and a security group. \
Expand Down

0 comments on commit 8835428

Please sign in to comment.