-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create the cloud-governance infra: User, Policy, Bucket
- Loading branch information
Showing
6 changed files
with
335 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
## Create CloudGovernance Infra in the cloud | ||
|
||
#### Requirements | ||
|
||
- IAM User: to access cloud resources. | ||
- IAM Policy: Least privilege principle | ||
- S3-Bucket: To store the logs of cloud-governance policy runs. | ||
|
||
### Pre-requisites | ||
|
||
- Install [AWS-CLI](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html). | ||
- Configure IAM Access credentials. (Admin Privileges/ Required Permissions to create/delete an user/policy/bucket) | ||
|
||
Steps to create Cloud Governance Infra resources: | ||
|
||
- Download tar `CloudGovernanceInfra.tar` and untar the file. | ||
|
||
```shell | ||
curl -L https://github.com/redhat-performance/cloud-governance/raw/main/iam/clouds/aws/CloudGovernanceInfra.tar | tar -xzvf - | ||
``` | ||
|
||
- Change the permissions of the file `create_infra.sh`. | ||
|
||
```shell | ||
chmod 700 create_infra.sh | ||
``` | ||
|
||
- Create read user and create bucket. | ||
|
||
```shell | ||
./create_infra.sh --username "$USERNAME" --s3-bucket-name "$BUCKET_NAME" | ||
``` | ||
|
||
- Create only delete user | ||
|
||
```shell | ||
./create_infra.sh --username "$USERNAME" --s3-bucket-name "$BUCKET_NAME" --policy-type delete | ||
``` | ||
|
||
- To get help | ||
|
||
```shell | ||
./create_infra.sh --help | ||
``` |
Oops, something went wrong.