Giter VIP home page Giter VIP logo

Comments (6)

markpeek avatar markpeek commented on August 15, 2024

My apologies for the breakage. We had hoped to make ARN usage more consistent across all of the resource types. This was introduced in 8aed5cc and further changes in 0.6.0 to allow for better generated code. @phobologic and @mhahn, do you have any comments about this?

The workaround and potentially the longer term fix would be to use one of these forms:

>>> import awacs.iam
>>> awacs.__version__
'0.6.0'
>>> awacs.iam.ARN(account='123456789012', resource='root').data
'arn:aws:iam::123456789012:root'
>>> awacs.iam.ARN('root', '', '123456789012').data
'arn:aws:iam::123456789012:root'

from awacs.

webratz avatar webratz commented on August 15, 2024

Probably the old behaviour should be restored, but adding a deprecation message.
After a while then switching over to the current behaviour

from awacs.

drandyziegler avatar drandyziegler commented on August 15, 2024

Looks like the same problem exists with awacs.sns.ARN()

from awacs.

ntwaddell avatar ntwaddell commented on August 15, 2024

How can I do this with Troposphere? Principal=Principal("AWS", [IAM_ARN(account=Ref('AWS::AccountId'), resource='role/Administrators')]),

from awacs.

emayssat-ms avatar emayssat-ms commented on August 15, 2024

@ntwaddell, you can't. AWACS regenerate a template, which is reused (as a string) by troposphere.
In other words, Ref in AWACS are not supported. Instead use troposphere's Join!

from awacs.

phobologic avatar phobologic commented on August 15, 2024

Closing this - after all these years, people should have switched over if using this.

from awacs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.