README.md in terraforming-0.3.2 vs README.md in terraforming-0.4.0
- old
+ new
@@ -49,15 +49,28 @@
export AWS_ACCESS_KEY_ID=XXXXXXXXXXXXXXXXXXXX
export AWS_SECRET_ACCESS_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
export AWS_DEFAULT_REGION=xx-yyyy-0
```
+You can also specify credential profile in `~/.aws/credentials` by `--profile` option.
+
+```bash
+$ cat ~/.aws/credentials
+[hoge]
+aws_access_key_id = Hoge
+aws_secret_access_key = FugaFuga
+
+# Pass profile name by --profile option
+$ terraforming s3 --profile hoge
+```
+
## Usage
```bash
$ terraforming
Commands:
+ terraforming asg # AutoScaling Group
terraforming dbpg # Database Parameter Group
terraforming dbsg # Database Security Group
terraforming dbsn # Database Subnet Group
terraforming ec2 # EC2
terraforming ecc # ElastiCache Cluster
@@ -83,11 +96,11 @@
```
### Export tf
```bash
-$ terraforming <resource>
+$ terraforming <resource> [--profile PROFILE]
```
(e.g. S3 buckets):
```bash
@@ -107,10 +120,10 @@
```
### Export tfstate
```bash
-$ terraforming <resource> --tfstate [--merge TFSTATE_PATH] [--overwrite]
+$ terraforming <resource> --tfstate [--merge TFSTATE_PATH] [--overwrite] [--profile PROFILE]
```
(e.g. S3 buckets):
```bash