Comments (6)
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.
Probably the old behaviour should be restored, but adding a deprecation message.
After a while then switching over to the current behaviour
from awacs.
Looks like the same problem exists with awacs.sns.ARN()
from awacs.
How can I do this with Troposphere? Principal=Principal("AWS", [IAM_ARN(account=Ref('AWS::AccountId'), resource='role/Administrators')]),
from awacs.
@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.
Closing this - after all these years, people should have switched over if using this.
from awacs.
Related Issues (20)
- Wrong Condition name in `_condition_strings` HOT 2
- PRs HOT 4
- Specific support actions are not allowed in IAM Policies
- Creating AWS objects from deserialized json? HOT 1
- awacs does not contain StringEquals class/function HOT 2
- Unable to Create IAM Policy Statement (awacs.aws.Statement) that is a troposphere.Ref HOT 1
- Missing S3 Permissions - ListObjectVersions HOT 2
- Missing actions for CodeArtifact HOT 1
- Creating a condition with conditionElement fails to serialize
- Please make a new release HOT 3
- Release 1.0.2 HOT 1
- Stop caching propnames? HOT 1
- Generate ConditionElements in aws.py instead of manipulating globals
- awacs 2.0 HOT 1
- S3 ARNs are too bucket centric HOT 1
- New Release HOT 1
- TagResource action needed for ApiGateway
- Add support for eks-auth:AssumeRoleForPodIdentity HOT 2
- Consider pulling from iam-dataset rather than scraping AWS' reference pages HOT 1
- How to create a composite principal?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from awacs.