This example creates an AWS bucket, lists the buckets on your account and then deletes the test bucket.
This is what your credentials file should look like:
name: aws
credentials:
- name: AWS_ACCESS_KEY_ID
source:
env: AWS_ACCESS_KEY_ID
- name: AWS_SECRET_ACCESS_KEY
source:
env: AWS_SECRET_ACCESS_KEY
$ porter install --cred aws
installing porter-aws-bucket...
executing porter install configuration from /cnab/app/porter.yaml
Create Bucket
Starting operation: Create Bucket
{
"Location": "/porter-aws-mixin-test"
}
Finished operation: Create Bucket
execution completed successfully!
$ porter invoke --action list --cred aws
invoking custom action list on porter-aws-bucket...
executing porter list configuration from /cnab/app/porter.yaml
List Buckets
Starting operation: List Buckets
[
"blog.sweetgeek.net",
"porter-aws-mixin-test",
"sweetgeek.net"
]
Finished operation: List Buckets
execution completed successfully!
$ porter uninstall --cred aws
uninstalling porter-aws-bucket...
executing porter uninstall configuration from /cnab/app/porter.yaml
Delete Bucket
execution completed successfully!