AWS S3 Backend Terraform module
Terraform module which creates terraform backend resources on AWS.
This module is used in terraform-aws-orga.
It can be used to bootstrap a terraform AWS project.
User Stories for this module
- AAOps I can create a backend for the terraform state
Usage
module "terraform_backend" {
source = "github.com/padok-team/terraform-aws-terraformbackend"
bucket_name = "my-backend-terraform-state"
dynamodb_table_name = "my-backend-terraform-lock"
}
Examples
Modules
No modules.
Inputs
Name | Description | Type | Default | Required |
---|---|---|---|---|
bucket_name | Name of the bucket to be created for terraform backend | string |
"terraform-state-bucket" |
no |
dynamodb_table_name | Name of the DynamoDB table to be created for terraform backend which is used as a terraform lock | string |
"terraform-state-lock-table" |
no |
Outputs
Name | Description |
---|---|
dynamodb_table_id | Name of the DynamoDB table |
s3_bucket_id | Name of the backend bucket |
License
See LICENSE for full details.
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the the License.