Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.

Stack#resource broken #209

Closed
brotbert opened this issue Feb 9, 2015 · 2 comments
Closed

Stack#resource broken #209

brotbert opened this issue Feb 9, 2015 · 2 comments

Comments

@brotbert
Copy link

brotbert commented Feb 9, 2015

Hi,

I can't fetch a stack subresource by using Stack#resource(logical_id) in aws-sdk 2.0.22. Although I pass the logical ID of the resource, it still says it's missing:

resource = stack.resource('PublicAlphaSubnet')
ArgumentError: missing required option :logical_id

How to reproduce

Get the stack resource:

stack = cf.stack 'sandbox-vpc'
=> #<Aws::CloudFormation::Stack name="sandbox-vpc">

Get the resource of a known logical ID:

resource = stack.resource('PublicAlphaSubnet')
ArgumentError: missing required option :logical_id
from /Users/rob/.rvm/gems/ruby-2.2.0/gems/aws-sdk-resources-2.0.22/lib/aws-sdk-resources/resource.rb:78:in `block in extract_identifiers'
@trevorrowe
Copy link
Contributor

Thanks for reporting this issue. The fix should go out tomorrow.

@brotbert
Copy link
Author

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants