Skip to content

Commit b284c7b

Browse files
authored
Merge pull request #61 from trussworks/ee-cleanup
cleaning up config and versioning
2 parents 23243f8 + e419ac9 commit b284c7b

File tree

4 files changed

+16
-19
lines changed

4 files changed

+16
-19
lines changed

.circleci/config.yml

+7-8
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,20 @@ jobs:
44
- auth:
55
password: $DOCKER_PASSWORD
66
username: $DOCKER_USERNAME
7-
image: trussworks/circleci:6986bb9022e5a83599feb66a7128a2d0fa12732a
7+
image: trussworks/circleci:efb1042e31538677779971798e0912390f699e72
88
steps:
99
- checkout
1010
- restore_cache:
1111
keys:
1212
- pre-commit-dot-cache-{{ checksum ".pre-commit-config.yaml" }}
1313
- go-mod-sources-v1-{{ checksum "go.sum" }}
1414
- run:
15-
command: "temp_role=$(aws sts assume-role \\\n --role-arn arn:aws:iam::313564602749:role/circleci\
16-
\ \\\n --role-session-name circleci)\nexport AWS_ACCESS_KEY_ID=$(echo\
17-
\ $temp_role | jq .Credentials.AccessKeyId | xargs)\nexport AWS_SECRET_ACCESS_KEY=$(echo\
18-
\ $temp_role | jq .Credentials.SecretAccessKey | xargs)\nexport AWS_SESSION_TOKEN=$(echo\
19-
\ $temp_role | jq .Credentials.SessionToken | xargs)\nmake test\n"
15+
command: |
16+
temp_role=$(aws sts assume-role --role-arn arn:aws:iam::313564602749:role/circleci --role-session-name circleci)
17+
export AWS_ACCESS_KEY_ID=$(echo $temp_role | jq .Credentials.AccessKeyId | xargs)
18+
export AWS_SECRET_ACCESS_KEY=$(echo $temp_role | jq .Credentials.SecretAccessKey | xargs)
19+
export AWS_SESSION_TOKEN=$(echo $temp_role | jq .Credentials.SessionToken | xargs)
20+
make test
2021
name: Assume role, run pre-commit and run terratest
2122
- save_cache:
2223
key: pre-commit-dot-cache-{{ checksum ".pre-commit-config.yaml" }}
@@ -26,8 +27,6 @@ jobs:
2627
key: go-mod-sources-v1-{{ checksum "go.sum" }}
2728
paths:
2829
- ~/go/pkg/mod
29-
references:
30-
circleci: trussworks/circleci:6986bb9022e5a83599feb66a7128a2d0fa12732a
3130
version: 2.1
3231
workflows:
3332
validate:

.pre-commit-config.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: git://github.com/pre-commit/pre-commit-hooks
3-
rev: v3.2.0
3+
rev: v3.4.0
44
hooks:
55
- id: check-json
66
- id: check-merge-conflict
@@ -12,17 +12,17 @@ repos:
1212
- id: trailing-whitespace
1313

1414
- repo: git://github.com/igorshubovych/markdownlint-cli
15-
rev: v0.23.2
15+
rev: v0.26.0
1616
hooks:
1717
- id: markdownlint
1818

1919
- repo: git://github.com/antonbabenko/pre-commit-terraform
20-
rev: v1.31.0
20+
rev: v1.45.0
2121
hooks:
2222
- id: terraform_docs
2323
- id: terraform_fmt
2424

2525
- repo: git://github.com/golangci/golangci-lint
26-
rev: v1.30.0
26+
rev: v1.33.0
2727
hooks:
2828
- id: golangci-lint

README.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ Terraform 0.13. Pin module version to ~> 3.0. Submit pull-requests to master bra
1515
\_
1616
Terraform 0.12. Pin module version to ~> 2.0. Submit pull-requests to terraform012 branch.
1717

18-
Terraform 0.11. Pin module version to ~> 1.0. Submit pull-requests to terraform011 branch.
19-
2018
## Usage
2119

2220
```hcl
@@ -34,14 +32,14 @@ module "acm_cert" {
3432

3533
| Name | Version |
3634
|------|---------|
37-
| terraform | ~> 0.13.0 |
38-
| aws | ~> 3.0 |
35+
| terraform | >= 0.13.0 |
36+
| aws | >= 3.0 |
3937

4038
## Providers
4139

4240
| Name | Version |
4341
|------|---------|
44-
| aws | ~> 3.0 |
42+
| aws | >= 3.0 |
4543

4644
## Inputs
4745

versions.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
terraform {
2-
required_version = "~> 0.13.0"
2+
required_version = ">= 0.13.0"
33

44
required_providers {
5-
aws = "~> 3.0"
5+
aws = ">= 3.0"
66
}
77
}

0 commit comments

Comments
 (0)