Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tf_mod_aws_remotestate
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
steamhaus
tf_mod_aws_remotestate
Commits
6c053baf
Commit
6c053baf
authored
Aug 10, 2019
by
Rob Greenwood
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upgrade to terraform v0.12
parent
d77e949b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
7 deletions
+15
-7
.gitignore
.gitignore
+1
-0
dynamodb.tf
dynamodb.tf
+4
-3
provider.tf
provider.tf
+3
-0
s3.tf
s3.tf
+4
-3
variables.tf
variables.tf
+3
-1
No files found.
.gitignore
0 → 100644
View file @
6c053baf
.terraform
dynamodb.tf
View file @
6c053baf
resource
"aws_dynamodb_table"
"remote_state_locking"
{
name
=
"
${
var
.
name
}
"
read_capacity
=
"
${
var
.
dynamodb_read_capacity
}
"
write_capacity
=
"
${
var
.
dynamodb_write_capacity
}
"
name
=
var
.
name
read_capacity
=
var
.
dynamodb_read_capacity
write_capacity
=
var
.
dynamodb_write_capacity
hash_key
=
"LockID"
attribute
{
...
...
@@ -9,3 +9,4 @@ resource "aws_dynamodb_table" "remote_state_locking" {
type
=
"S"
}
}
provider.tf
0 → 100644
View file @
6c053baf
terraform
{
required_version
=
">= 0.12"
}
s3.tf
View file @
6c053baf
resource
"aws_s3_bucket"
"remote_state"
{
bucket
=
"
${
var
.
name
}
"
bucket
=
var
.
name
acl
=
"private"
versioning
{
...
...
@@ -47,6 +47,7 @@ data "aws_iam_policy_document" "remote_state_always_enc" {
}
resource
"aws_s3_bucket_policy"
"remote_state"
{
bucket
=
"
${
aws_s3_bucket
.
remote_state
.
id
}
"
policy
=
"
${data
.
aws_iam_policy_document
.
remote_state_always_enc
.
json
}
"
bucket
=
aws_s3_bucket
.
remote_state
.
id
policy
=
data
.
aws_iam_policy_document
.
remote_state_always_enc
.
json
}
variables.tf
View file @
6c053baf
variable
"name"
{}
variable
"name"
{
}
variable
"dynamodb_read_capacity"
{
default
=
"1"
...
...
@@ -7,3 +8,4 @@ variable "dynamodb_read_capacity" {
variable
"dynamodb_write_capacity"
{
default
=
"1"
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment