mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-02-02 18:44:49 -05:00
document usage of iamlive (#443)
Signed-off-by: Fabian Kammel <fk@edgeless.systems>
This commit is contained in:
parent
4f4cd4cc67
commit
668b4d000b
26
hack/terraform/aws/iam/README.md
Normal file
26
hack/terraform/aws/iam/README.md
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# IAM
|
||||||
|
|
||||||
|
## iamlive
|
||||||
|
|
||||||
|
[iamlive](https://github.com/iann0036/iamlive) dynamically determines the minimal
|
||||||
|
permissions to call a set of AWS API calls.
|
||||||
|
|
||||||
|
It uses a local proxy to intercept API calls and incrementally generate the AWS
|
||||||
|
policy.
|
||||||
|
|
||||||
|
In one session start `iamlive`:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
iamlive -mode proxy -bind-addr 0.0.0.0:10080 -force-wildcard-resource -output-file iamlive.policy.json
|
||||||
|
```
|
||||||
|
|
||||||
|
In another session execute terraform:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
PREFIX="record-iam"
|
||||||
|
terraform init
|
||||||
|
HTTP_PROXY=http://127.0.0.1:10080 HTTPS_PROXY=http://127.0.0.1:10080 AWS_CA_BUNDLE="${HOME}/.iamlive/ca.pem" terraform apply -auto-approve -var name_prefix=${PREFIX}
|
||||||
|
HTTP_PROXY=http://127.0.0.1:10080 HTTPS_PROXY=http://127.0.0.1:10080 AWS_CA_BUNDLE="${HOME}/.iamlive/ca.pem" terraform destroy -auto-approve -var name_prefix=${PREFIX}
|
||||||
|
```
|
||||||
|
|
||||||
|
`iamlive` will present the generated policy, and after \<CTRL-C\> the `iamlive` process it will also write it to the specified file.
|
Loading…
x
Reference in New Issue
Block a user