initial commit
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
# assume_role module
|
||||
This module uses awscli, calls sts and obtain temp credentials for role switching. Returns the temp credential as a map.
|
||||
|
||||
## System requirements
|
||||
* awscli
|
||||
* jq
|
||||
|
||||
## Inputs
|
||||
| variable | type | required | description |
|
||||
|:------------------|--------|----------|----------------------------------------------------------------------------|
|
||||
| account_id | string | yes | target aws account id |
|
||||
| role_name | string | yes | target role name |
|
||||
| role_session_name | string | no | session name, useful for tracing logs in cloudtrail. defaults to tf_awscli |
|
||||
|
||||
## Outputs
|
||||
| variable | type | sensitive | description |
|
||||
|-----------------|---------------|-----------|-------------------------|
|
||||
| temp_credential | map of string | yes | json output from awscli |
|
||||
|
||||
```json
|
||||
{
|
||||
"AccessKeyId": "111",
|
||||
"SecretAccessKey": "222",
|
||||
"SessionToken": "333",
|
||||
"Expiration": "2023-07-01T10:19:47+00:00"
|
||||
}
|
||||
```
|
||||
|
||||
# References
|
||||
This module is based on https://registry.terraform.io/modules/digitickets/cli/aws/latest
|
||||
Reference in New Issue
Block a user