Skip to content

Commit

Permalink
Merge pull request #570 from alpineriveredge/add_tag_cloudformation_s…
Browse files Browse the repository at this point in the history
…tack

Allow Tags of CloudFormation Stack
  • Loading branch information
k1LoW authored Aug 28, 2022
2 parents 3329b60 + b7ba600 commit 79ef5f3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/_resource_types/cloudformation_stack.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,11 @@ describe cloudformation_stack('my-cloudformation-stack') do
its(:stack_status) { should eq 'UPDATE_COMPLETE' }
end
```

### have_tag

```ruby
describe cloudformation_stack('my-cloudformation-stack') do
it { should have_tag('env').value('dev') }
end
```
9 changes: 9 additions & 0 deletions doc/resource_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,15 @@ describe cloudformation_stack('my-cloudformation-stack') do
end
```


### have_tag

```ruby
describe cloudformation_stack('my-cloudformation-stack') do
it { should have_tag('env').value('dev') }
end
```

### its(:stack_id), its(:stack_name), its(:change_set_id), its(:description), its(:parameters), its(:creation_time), its(:deletion_time), its(:last_updated_time), its(:rollback_configuration), its(:stack_status), its(:stack_status_reason), its(:disable_rollback), its(:notification_arns), its(:timeout_in_minutes), its(:capabilities), its(:role_arn), its(:enable_termination_protection), its(:parent_id), its(:root_id), its(:drift_information)
## <a name="cloudfront_distribution">cloudfront_distribution</a>

Expand Down
3 changes: 3 additions & 0 deletions lib/awspec/type/cloudformation_stack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

module Awspec::Type
class CloudformationStack < ResourceBase
aws_resource Aws::CloudFormation::Stack
tags_allowed

def resource_via_client
@resource_via_client ||= find_cloudformation_stack(@display_name)
end
Expand Down

0 comments on commit 79ef5f3

Please sign in to comment.