I am stuck , how to render the template ,what should I do and how . can you tell me after the gem installing of gem 'cloud_formation' , gem install cf_deployer , and after the bundling what and how should I do ?
this whole process , what , how and where should i do :
Generate a template
template = CloudFormation::Template.new
template.build do |t|
t.name = "stack-name"
t.description = "A description of the stack"
end
template.render
Running this will generate a nicely compacted:
{"AWSTemplateFormatVersion":"2010-09-09","Name":"stack-name","Description":"A description of the stack","Resources":{}}
Generate a DynamoDB table
Generating a DynamoDB table is as simple as:
template = CloudFormation::Template.new
template.build do |t|
t.name = "stack-name"
t.description = "A description of the stack"
end
dynamo_db = CloudFormation::DynamoDB.new
table = dynamo_db.build_table do |t|
t.name = "commentsTable"
t.read_capacity_units = 10
t.write_capacity_units = 5
t.hash_key = { blog_post_id: :number }
t.range_key = { comment_id: :number }
end
I am trying to run my own template which I downloaded from a site please look in to it as i am a fresher and need help to complete this deployment .................
I am stuck , how to render the template ,what should I do and how . can you tell me after the gem installing of gem 'cloud_formation' , gem install cf_deployer , and after the bundling what and how should I do ?
this whole process , what , how and where should i do :
Generate a template
template = CloudFormation::Template.new
template.build do |t|
t.name = "stack-name"
t.description = "A description of the stack"
end
template.render
Running this will generate a nicely compacted:
{"AWSTemplateFormatVersion":"2010-09-09","Name":"stack-name","Description":"A description of the stack","Resources":{}}
Generate a DynamoDB table
Generating a DynamoDB table is as simple as:
template = CloudFormation::Template.new
template.build do |t|
t.name = "stack-name"
t.description = "A description of the stack"
end
dynamo_db = CloudFormation::DynamoDB.new
table = dynamo_db.build_table do |t|
t.name = "commentsTable"
t.read_capacity_units = 10
t.write_capacity_units = 5
t.hash_key = { blog_post_id: :number }
t.range_key = { comment_id: :number }
end
I am trying to run my own template which I downloaded from a site please look in to it as i am a fresher and need help to complete this deployment .................