ace-teknologi / terraform-iam Goto Github PK
View Code? Open in Web Editor NEWA generic module to create best practice AWS IAM resources
A generic module to create best practice AWS IAM resources
The readonly role cannot be assumed.
➜ terraform-repo git:(master) ✗ aws-vault exec bob-readonly -- aws s3 ls
Enter token for arn:aws:iam::***:mfa/username: ******
aws-vault: error: Failed to get credentials for bob (source profile for bob-readonly): AccessDenied: Access denied
status code: 403, request id: 06a71f25-b716-11e9-84a2-83fe1cca3dc5
➜ infra-**** git:(feature/2/import-users) ✗ aws-vault exec **** -- terraform import module.iam-user-legacy-joel.aws_iam_user.main joel
module.iam-user-legacy-joel.aws_iam_user.main: Importing from ID "joel"...
module.iam-user-legacy-joel.aws_iam_user.main: Import prepared!
Prepared aws_iam_user for import
module.iam-user-legacy-joel.aws_iam_user.main: Refreshing state... [id=joel]
Error: Invalid index
on .terraform/modules/iam-groups/groups/tagging.tf line 4, in locals:
4: tf_root_path = coalesce(var.tags["tf_path"], "unknown")
|----------------
| var.tags is empty map of string
The given key does not identify an element in this collection value.
Error: Invalid index
on .terraform/modules/iam-roles/roles/tagging.tf line 4, in locals:
4: tf_root_path = coalesce(var.tags["tf_path"], "unknown")
|----------------
| var.tags is empty map of string
The given key does not identify an element in this collection value.
iam:GetAccountSummary
(ref: https://iam.cloudonaut.io/reference/iam/GetAccountSummary.html) usage and quotas ?iam:ListAccountAliases
(ref: https://iam.cloudonaut.io/reference/iam/ListAccountAliases.html) to give access to the shortcut urlUser: arn:aws:iam::***:user/*** is not authorized to perform: iam:DeleteVirtualMFADevice on resource:
arn:aws:iam::***:mfa/***
Lines 4 to 7 in 44cd2f0
Should be:
authorised_account_ids = (length(var.authorised_account_ids) == 0 ?
[data.aws_caller_identity.current.account_id] :
var.authorised_account_ids)
authorised_account_root_arns = formatlist("arn:aws:iam::%s:root", local.authorised_account_ids)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.