Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terraform 0.12 support #35

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ common: &common
working_directory: ~/repo

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

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

version: 2

Expand Down
11 changes: 11 additions & 0 deletions .env.covalence
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
DOCKER_IMAGE_NAME=unifio/ci:5.0.718-ruby-2.5.5
# Sets the user running inside docker to match current user's uid and gid
# CONTAINER_USER_ID=$(id -u)

# AWS_CREDENTIAL_PATH is to specify where we look for your AWS credentials file.
# This will be mounted into container so that Terraform can use them.
AWS_CREDENTIAL_PATH=~/.aws

# DOCKER_HOMEDIR is where we are mounting the AWS_CREDENTIAL_PATH in container
DOCKER_HOMEDIR=/root
#COVALENCE_DEBUG=true
12 changes: 6 additions & 6 deletions .env.docker
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
AWS_REGION=us-east-2
COVALENCE_PACKER_DIR=./
COVALENCE_TERRAFORM_DIR=./
COVALENCE_TEST_ENVS=basic
AWS_REGION=us-east-1
CI_REPORTS=reports
COVALENCE_TEST_ENVS=basic,complete
CHECKPOINT_DISABLE=1
GODEBUG=netdns=cgo
USER=root
AWS_PROFILE=unifiouat
AWS_DEFAULT_PROFILE=unifiouat
AWS_DEFAULT_REGION=us-east-1
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.tfstate*
.terraform/
spec/reports/*
/.gtm/
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@
to a single SNS topic.
* Extend multi-part user_data mechanism to support more use cases.

## 0.4.0 (Oct 08, 2019)

#### IMPROVEMENTS / NEW FEATURES:
* Updated for Terraform v0.12

#### BACKWARDS INCOMPATIBILITIES / NOTES:
* Terraform versions earlier than 0.12.0 no longer supported.

## 0.3.0 (March 24, 2017)

#### BACKWARDS INCOMPATIBILITIES / NOTES:
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,12 @@ module "asg" {
vpc_id = "vpc-0f986c66"

# LC parameters
ami = "ami-c55673a0"
ami = "ami-0b33d91d"
enable_monitoring = true
instance_based_naming_enabled = true
instance_type = "m4.large"
key_name = "ops"
security_groups = "sg-c1afc0a8,sg-d4f906bd"
security_groups = "sg-c1afc0a8,sg-7e33f32f"
spot price = "0.010"
user_data = "${template_file.user_data.rendered}"

Expand Down Expand Up @@ -210,11 +210,11 @@ module "asg" {
vpc_id = "vpc-0f986c66"

# LC parameters
ami = "ami-c55673a0"
ami = "ami-0b33d91d"
ebs_vol_device_name = "/dev/xvdb"
ebs_vol_encrypted = true
ebs_vol_size = 2
ebs_vol_snapshot_id = "snap-08b95a31adefd036f"
ebs_vol_snapshot_id = "snap-62d9d283"
enable_monitoring = true
instance_based_naming_enabled = true
instance_name_prefix = "supercool"
Expand Down
Loading