terraspace_plugin_aws 0.5.1 → 0.6.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3f9f9a3b88574c069c75430c030e97113cc42499a9045fed26b4e3e020114e33
4
- data.tar.gz: 1584ea8223228a13d33146a2cb714555a1ba7516d3aa1b7a755dba0452cda4bb
3
+ metadata.gz: 45855622a0c3a3a7b78580cc3a0962c468899487570f13c77ff31970eabd1c16
4
+ data.tar.gz: '09bcbeb865515ca488001b0834e899c3351e53ecdb20bec698e00afacaad3ab7'
5
5
  SHA512:
6
- metadata.gz: 25c64453f2ace55010f4d3a4c53781f094424884c1861595bf8e55732e86087178ad7960839f2d01dd6b5efddbf0daf9b7ace8fc43cf37f7315faa443f1ca075
7
- data.tar.gz: f6eac03886c4481724391b2b2d1d879feddb9bc0e2d0c0b4fd7d4e7d464c9b21e4a1a6e5b6d614c692afb1f06e9e32b4f67518bf150b980bfe3a2280c8a902ca
6
+ metadata.gz: 9e1248830acc18f5d68ad49aeade257c0ded0ddd294ed0c904a0bc3c89ed4f099aa50a5c100536f9dab3a133638e81f451ae7f21b02206593a5df4ed2e39cda8
7
+ data.tar.gz: 84f1717dd86aa3c22e5457b14161a9826b17e9b06040f7492b68e4e394441e29b324e3eb89fae66ccf5e3438a13e8904cd65f14473bcce31155bc08464f2533f
data/CHANGELOG.md CHANGED
@@ -3,6 +3,9 @@
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.6.0] - 2023-06-07
7
+ - [#25](https://github.com/boltops-tools/terraspace_plugin_aws/pull/25) fix starter example, use tags as example instead
8
+
6
9
  ## [0.5.1] - 2023-03-27
7
10
  - [#24](https://github.com/boltops-tools/terraspace_plugin_aws/pull/24) Remove redundant backend `encrypt` configuration
8
11
 
@@ -1,8 +1,4 @@
1
1
  resource "aws_s3_bucket" "this" {
2
2
  bucket = var.bucket # If omitted, Terraform will assign a random, unique name.
3
- }
4
-
5
- resource "aws_s3_bucket_acl" "this" {
6
- bucket = aws_s3_bucket.this.id
7
- acl = var.acl
3
+ tags = var.tags
8
4
  }
@@ -4,8 +4,8 @@ variable "bucket" {
4
4
  default = null
5
5
  }
6
6
 
7
- variable "acl" {
8
- description = "(Optional) The canned ACL to apply. Defaults to 'private'."
9
- type = string
10
- default = "private"
11
- }
7
+ variable "tags" {
8
+ description = "(Optional) A mapping of tags to assign to the bucket."
9
+ type = map(string)
10
+ default = {}
11
+ }
@@ -5,5 +5,5 @@ resource "random_pet" "this" {
5
5
  module "bucket" {
6
6
  source = "../../modules/example"
7
7
  bucket = "bucket-${random_pet.this.id}"
8
- acl = var.acl
8
+ tags = var.tags
9
9
  }
@@ -1,5 +1,5 @@
1
- variable "acl" {
2
- description = "The canned ACL to apply. Defaults to 'private'."
3
- type = string
4
- default = "private"
1
+ variable "tags" {
2
+ description = "(Optional) A mapping of tags to assign to the bucket."
3
+ type = map(string)
4
+ default = {}
5
5
  }
@@ -1,8 +1,4 @@
1
1
  resource("aws_s3_bucket", "this",
2
2
  bucket: var.bucket, # If omitted, Terraform will assign a random, unique name.
3
- )
4
-
5
- resource("aws_s3_bucket_acl", "this",
6
- bucket: "${aws_s3_bucket.this.id}",
7
- acl: var.acl,
3
+ tags: var.tags,
8
4
  )
@@ -3,7 +3,8 @@ variable("bucket",
3
3
  default: nil,
4
4
  )
5
5
 
6
- variable("acl",
7
- description: "(Optional) The canned ACL to apply. Defaults to 'private'.",
8
- default: "private",
6
+ variable("tags",
7
+ description: "(Optional) A mapping of tags to assign to the bucket.",
8
+ type: "map(string)",
9
+ default: {},
9
10
  )
@@ -5,5 +5,5 @@ resource("random_pet", "this",
5
5
  module!("bucket",
6
6
  source: "../../modules/example",
7
7
  bucket: "bucket-${random_pet.this.id}",
8
- acl: var.acl,
8
+ tags: var.tags,
9
9
  )
@@ -1,5 +1,5 @@
1
- variable("acl",
2
- description: "The canned ACL to apply. Defaults to 'private'.",
3
- type: "string",
4
- default: "private",
1
+ variable("tags",
2
+ description: "(Optional) A mapping of tags to assign to the bucket.",
3
+ type: "map(string)",
4
+ default: {},
5
5
  )
@@ -1,3 +1,3 @@
1
1
  module TerraspacePluginAws
2
- VERSION = "0.5.1"
2
+ VERSION = "0.6.0"
3
3
  end
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.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-27 00:00:00.000000000 Z
11
+ date: 2023-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-dynamodb
@@ -122,7 +122,7 @@ dependencies:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
- description:
125
+ description:
126
126
  email:
127
127
  - tung@boltops.com
128
128
  executables: []
@@ -195,7 +195,7 @@ licenses:
195
195
  - Apache2.0
196
196
  metadata:
197
197
  homepage_uri: https://github.com/boltops-tools/terraspace_plugin_aws
198
- post_install_message:
198
+ post_install_message:
199
199
  rdoc_options: []
200
200
  require_paths:
201
201
  - lib
@@ -210,8 +210,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
210
210
  - !ruby/object:Gem::Version
211
211
  version: '0'
212
212
  requirements: []
213
- rubygems_version: 3.3.26
214
- signing_key:
213
+ rubygems_version: 3.4.10
214
+ signing_key:
215
215
  specification_version: 4
216
216
  summary: Terraspace AWS Plugin
217
217
  test_files: []