cloudtools / cloudtools/troposphere

AssumeRolePolicyDocument TypeError when not using awacs

Open
#967 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
4.9k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

Using `TemplateGenerator` to import an existing template yields the following error:
```
TypeError: : JustARole.AssumeRolePolicyDocument is , expected (,)
```
The relevant resource:
```
"JustARole":{
"Type":"AWS::IAM::Role",
"Properties":{
"AssumeRolePolicyDocument":{
"Version":"2012-10-17",
"Statement":[{
"Effect":"Allow",
"Principal":{
"Service":["ec2.amazonaws.com"]
},
"Action":["sts:AssumeRole"]
}]
},
"Path":"/"
}
}
```
It seems there's something wrong with fetching the `AssumeRolePolicyDocument` type as it's definitely not a ``.
Installing `troposphere[policy]` made the error disappear. (It appears that the type checking is a bit different when using `awacs`)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.