aws mixin

Run an aws command using the AWS CLI.

Source: https://github.com/deislabs/porter-aws

Install or Upgrade

porter mixin install aws --feed-url https://cdn.deislabs.io/porter/atom.xml

Mixin Syntax

See the AWS CLI Command Reference for the supported commands

aws:
  description: "Description of the command"
  service: SERVICE
  operation: OP
  arguments:
  - arg1
  - arg2
  flags:
    FLAGNAME: FLAGVALUE
    REPEATED_FLAG:
    - FLAGVALUE1
    - FLAGVALUE2

Examples

The Buckets Example provides a full working bundle demonstrating how to use this mixin.

Provision a VM

aws:
  description: "Provision VM"
  service: ec2
  operation: run-instances
  flags:
    image-id: ami-xxxxxxxx
    instance-type: t2.micro

Create a Bucket

aws:
  description: "Create Bucket"
  service: s3api
  operation: create-bucket
  flags:
    bucket: my-buckkit
    region: us-east-1