Comments (5)
What is the intended way to add policies, currently (v0.0.5)?
data "aws_iam_policy" "secretsmanager_read_write" {
arn = "arn:aws:iam::aws:policy/SecretsManagerReadWrite"
}
module "mwaa" {
...
create_iam_role = true # optional, added for clarity
iam_role_additional_policies = {
"does_this_key_have_any_significance" = data.aws_iam_policy.secretsmanager_read_write.arn
}
}
I that correct?
from terraform-aws-mwaa.
@ZhijieWang Thanks for raising this issue. Would you be able to raise a PR with the solution you mentioned?
from terraform-aws-mwaa.
I ended up creating a pull request for this.
I implemented the proposed solution- the the chain-wrapping of toset(), concat() etc were unnecessary in the end, since if the data type is map(string)
, you can iterate through it painlessly
from terraform-aws-mwaa.
Would be good to merge this PR soon. Currently, it seems there is no way to grant additional permissions to the IAM role, since iam_role_additional_policies
has this bug and we cannot add additional policies if create_iam_role=true
from terraform-aws-mwaa.
What is the intended way to add policies, currently (v0.0.5)?
data "aws_iam_policy" "secretsmanager_read_write" { arn = "arn:aws:iam::aws:policy/SecretsManagerReadWrite" } module "mwaa" { ... create_iam_role = true # optional, added for clarity iam_role_additional_policies = { "does_this_key_have_any_significance" = data.aws_iam_policy.secretsmanager_read_write.arn } }I that correct?
Yes, looks correct and how we have been doing it as well. The key does not have much significance, apart from that it has to be unique, I think.
from terraform-aws-mwaa.
Related Issues (19)
- Fully private MWAA environment with example HOT 1
- Configuring tags don't apply to the MWAA assets created HOT 1
- AWS version pinning HOT 1
- What is the intended deployment pattern for changing requirements and plugins? HOT 5
- Add secret_prefix var so that one can grant MWAA access to secrets under a specific prefix HOT 1
- Security issue: MWAA has more access than it needs HOT 1
- Add support for startup scripts HOT 1
- Update README
- aws_mwaa_environment gets destroyed and recreated unnecessarily
- Feature Request: Allow passthrough arns for cloudwatch log groups HOT 1
- S3 Bucket Arn is mandatory argument when providing S3 Bucket Name
- Add example to run sample Glue and EMR Jobs with RAEDME HOT 3
- How do you set log retention?
- Enable support for setting KMS key for S3 bucket and MWAA
- var.source_bucket_name should be respected as the S3 bucket name and not the prefix HOT 1
- Output of VPC endpoint id if it was created
- Terratest for module testing
- Deployment Architecture Diagram HOT 1
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 terraform-aws-mwaa.