{"repo":"k1LoW/awspec","free":true,"listed":false,"github":"https://github.com/k1LoW/awspec","clone":"git clone https://github.com/k1LoW/awspec.git","description":"RSpec tests for your AWS resources.","language":"Ruby","stars":1177,"topics":["aws","rspec"],"license":"MIT","category":"cli-tools","readme_excerpt":"awspec RSpec tests for your AWS resources. Resource Types Contributing Installation Add this line to your application's Gemfile: And then execute: $ bundle Or install it yourself as: $ gem install awspec Getting Started STEP 1. Generate awspec init files If you're starting on a fresh RSpec project, you can use awspec to generate your init files: $ awspec init If you're working on an existing RSpec project, you will need to add the following lines to your spec helper.rb file: STEP 2. Set AWS config 2-1. Use Shared Credentials like AWS CLI (See http://docs.aws.amazon.com/ja jp/cli/latest/userguide/cli-chap-getting-started.html#config-settings-and-precedence) 2-2. Use secrets.yml STEP 3. Write spec/\\ \\ spec.rb Using shared context: region Using terraform outputs as identifier Especially in cases, where resources created by terraform have the same names (e.g. created by VPC module), it is helpful to use terraform outputs as unique identifiers. STEP 4. Run tests Add gem \"rake\" in your Gemfile if you are starting a blank project. $ bundle exec rake spec Advanced Tips: Spec generate command Generate spec from AWS resources already exists. Make sure you have added in your spec file Advanced Tips: Use Shared Credentials ( /.aws/config /.aws/credentials) Advanced Tips: Configuring the AWS client retries The ClientWrap class provides mechanisms for retrying AWS API calls when it receives a RequestLimitExceeded error. ClientWrap implements a backoff algorithm where the client will sleep ","default_branch":null,"files":null,"tree":[],"storefront":"/r/k1LoW","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/k1LoW/awspec/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}