Skip to content

Commit

Permalink
Merge pull request #10 from unifio/yl-wip
Browse files Browse the repository at this point in the history
TF aws-provider > 1.9 deprecation warning fix
  • Loading branch information
yuhunglin authored May 31, 2018
2 parents 44e9c49 + d9deaea commit 689fc31
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 27 deletions.
52 changes: 52 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
common: &common
working_directory: ~/repo

docker:
- image: unifio/ci:3.0.551-ruby-2.5.1

environment:
AWS_REGION: 'us-east-2'
TF_PLUGIN_CACHE_DIR: '/root/.terraform.d/plugin-cache'

version: 2

jobs:
build:
<<: *common

steps:
- checkout

- run:
name: Verify
environment:
CI_REPORTS: 'reports'
COVALENCE_TEST_ENVS: 'proxy,stage,usage'
command: |
mkdir reports
bundle exec rake ci
- store_test_results:
path: reports

- run:
name: UAT
command: |
bundle exec rake proxy:http:apply
bundle exec rake stage:domain:apply
bundle exec rake stage:deploy:apply
bundle exec rake usage:defaults:apply
- run:
name: Cleanup
command: |
bundle exec rake usage:defaults:destroy
## Race conditions prevent a clean destroy on the stage
bundle exec rake stage:deploy:destroy || true
bundle exec rake stage:deploy:destroy
bundle exec rake proxy:destroy
experimental:
notify:
branches:
only:
- master
4 changes: 1 addition & 3 deletions account/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ terraform {
required_version = ">= 0.9.3"
}

data "aws_region" "current" {
current = true
}
data "aws_region" "current" {}

## Creates IAM role for service integrations
data "aws_iam_policy_document" "role" {
Expand Down
21 changes: 0 additions & 21 deletions circle.yml

This file was deleted.

4 changes: 1 addition & 3 deletions stage/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ terraform {
required_version = ">= 0.9.3"
}

data "aws_region" "current" {
current = true
}
data "aws_region" "current" {}

## Creates an API stage & deployment
resource "aws_api_gateway_stage" "stage" {
Expand Down

0 comments on commit 689fc31

Please sign in to comment.