Sha256: f2aa80cc37276a8cb8cdcf447536a0f1ef76ccf02a6c1fca9886e4cbd8d77421
Contents?: true
Size: 702 Bytes
Versions: 33
Compression:
Stored size: 702 Bytes
Contents
#!/usr/bin/env ruby require 'convection' test_iam_group_template = Convection.template do description 'This is an example of a stack representing IAM Groups and Policies.' parameter 'Path' do type 'String' default '/' end iam_policy 'GroupPolicy' do policy_name 'NewPolicy' group fn_ref(:NewGroup) policy( :Statement => [{ :Effect => 'Allow', :Action => ['s3:GetObject'], :Resource => ['arn:aws:s3:::some.bucket.name.here/*'] }] ) end iam_group 'NewGroup' do path fn_ref(:Path) end end puts test_iam_group_template.to_json # puts Convection.stack('IAMTestStack', test_iam_group_template, :region => 'us-west-1').apply
Version data entries
33 entries across 33 versions & 1 rubygems