terraspace_plugin_aws 0.3.8 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/lib/templates/hcl/project/config/terraform/backend.tf.tt +3 -1
- data/lib/templates/ruby/project/config/terraform/backend.rb.tt +4 -2
- data/lib/terraspace_plugin_aws/interfaces/ci.rb +12 -0
- data/lib/terraspace_plugin_aws/version.rb +1 -1
- data/lib/terraspace_plugin_aws.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4855ee6836ff078ac45b25dda0c65a0b314d1b489c64ba77364eaad47ff43041
|
4
|
+
data.tar.gz: c8e08ac003c638aedbc3e9d21c64c1574a9d8d5976e67bf10e7e709673349596
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7606885e2d5375a8e31619954106e82b524e19207f8a4911745ad16fa15abecd70a7afe64776449bc39b68daf37e4250ac6ceb5df7503e98c35b0510df30190
|
7
|
+
data.tar.gz: e9b95ab46db2fe52e0b20ddb25998edec887d8e8f0725b8687e038734daaa1f91e19d72638154fc17db905e501227699275b7008e9a8559b997c4fa2256d89b8
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,17 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/).
|
5
5
|
|
6
|
+
## [0.4.2] - 2022-07-13
|
7
|
+
- [#22](https://github.com/boltops-tools/terraspace_plugin_aws/pull/22) add backend config variables docs comment
|
8
|
+
|
9
|
+
## [0.4.1] - 2022-06-14
|
10
|
+
- [#21](https://github.com/boltops-tools/terraspace_plugin_aws/pull/21) backend.tf template: add project variable
|
11
|
+
|
12
|
+
## [0.4.0] - 2022-06-10
|
13
|
+
- [#20](https://github.com/boltops-tools/terraspace_plugin_aws/pull/20) Update Generated Default Backend Key and CI Interface
|
14
|
+
- add ci interface class
|
15
|
+
- change default backend key
|
16
|
+
|
6
17
|
## [0.3.8] - 2022-06-09
|
7
18
|
- [#19](https://github.com/boltops-tools/terraspace_plugin_aws/pull/19) fix bucket tagging: use parsed region from backend.tf for s3 client
|
8
19
|
|
@@ -1,7 +1,9 @@
|
|
1
|
+
# Backend Config Variables Docs
|
2
|
+
# https://terraspace.cloud/docs/config/backend/variables/
|
1
3
|
terraform {
|
2
4
|
backend "s3" {
|
3
5
|
bucket = "<%%= expansion('terraform-state-:ACCOUNT-:REGION-:ENV') %>"
|
4
|
-
key = "<%%= expansion(':
|
6
|
+
key = "<%%= expansion(':PROJECT/:TYPE_DIR/:APP/:ROLE/:MOD_NAME/:ENV/:EXTRA/:REGION/terraform.tfstate') %>"
|
5
7
|
region = "<%%= expansion(':REGION') %>"
|
6
8
|
encrypt = true
|
7
9
|
dynamodb_table = "terraform_locks"
|
@@ -1,6 +1,8 @@
|
|
1
|
+
# Backend Config Variables Docs
|
2
|
+
# https://terraspace.cloud/docs/config/backend/variables/
|
1
3
|
backend("s3",
|
2
|
-
bucket: "terraform-state-:ACCOUNT-:REGION-:ENV",
|
3
|
-
key: ":
|
4
|
+
bucket: "terraform-state-:ACCOUNT-:REGION-:ENV",
|
5
|
+
key: ":PROJECT/:TYPE_DIR/:APP/:ROLE/:MOD_NAME/:ENV/:EXTRA/:REGION/terraform.tfstate",
|
4
6
|
region: ":REGION",
|
5
7
|
encrypt: true,
|
6
8
|
dynamodb_table: "terraform_locks"
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module TerraspacePluginAws::Interfaces
|
2
|
+
class Ci
|
3
|
+
# interface method
|
4
|
+
def vars
|
5
|
+
{
|
6
|
+
AWS_ACCESS_KEY_ID: '${{ secrets.AWS_ACCESS_KEY_ID }}',
|
7
|
+
AWS_SECRET_ACCESS_KEY: '${{ secrets.AWS_SECRET_ACCESS_KEY }}',
|
8
|
+
AWS_REGION: AwsData.new.region,
|
9
|
+
}
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -39,5 +39,6 @@ Terraspace::Plugin.register("aws",
|
|
39
39
|
config_class: TerraspacePluginAws::Interfaces::Config,
|
40
40
|
helper_class: TerraspacePluginAws::Interfaces::Helper,
|
41
41
|
layer_class: TerraspacePluginAws::Interfaces::Layer,
|
42
|
+
ci_class: TerraspacePluginAws::Interfaces::Ci,
|
42
43
|
root: File.dirname(__dir__),
|
43
44
|
)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: terraspace_plugin_aws
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-dynamodb
|
@@ -175,6 +175,7 @@ files:
|
|
175
175
|
- lib/terraspace_plugin_aws/interfaces/backend/bucket/tagging.rb
|
176
176
|
- lib/terraspace_plugin_aws/interfaces/backend/setup.rb
|
177
177
|
- lib/terraspace_plugin_aws/interfaces/backend/table.rb
|
178
|
+
- lib/terraspace_plugin_aws/interfaces/ci.rb
|
178
179
|
- lib/terraspace_plugin_aws/interfaces/config.rb
|
179
180
|
- lib/terraspace_plugin_aws/interfaces/decorator.rb
|
180
181
|
- lib/terraspace_plugin_aws/interfaces/decorator/aws_security_group.rb
|