Skip to content

Repository files navigation

serverkit-aws

Serverkit plug-in for Amazon Web Services (AWS).

Install

# Gemfilegem"serverkit-aws"

Resource

cloud_front_web_distribution

Create a CloudFront web distribution.

Attributes

  • aws_access_key_id - AWS access key ID
  • aws_region - AWS region
  • aws_secret_access_key - AWS secret access key
  • distribution_config - distribution_config parameter

Note: some default parameters are reverse-merged into given distribution_config.

Example

resources:
- type: cloud_front_web_distributionaws_region: ap-northeast-1distribution_config:
caller_reference: testdefault_cache_behavior:
target_origin_id: S3-testorigins:
items:
- id: S3-testdomain_name: test.s3.amazonaws.coms3_origin_config:
origin_access_identity: ""quantity: 1

s3_bucket

Create a S3 bucket.

Attributes

  • aws_access_key_id - AWS access key ID
  • aws_region - AWS region
  • aws_secret_access_key - AWS secret access key
  • name - S3 bucket name (required) (e.g. "my-bucket")

Example

resources:
- type: s3_bucketname: my-bucketaws_region: ap-northeast-1

Credentials and Region

serverkit-aws searches the following locations for credentials and a region:

  • ENV["AWS_ACCESS_KEY_ID"]
  • ENV["AWS_REGION"]
  • ENV["AWS_SECRET_ACCESS_KEY"]
  • The shared credentials ini file at ~/.aws/credentials
  • From an instance profile when running on EC2

About

Serverkit plug-in for Amazon S3.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages