kops-state-backend

cloudposse/kops-state-backend/aws

Terraform Module HCL AWS

Easily bootstrap kops clusters (DNS & S3 Bucket)

Install
module "kops-state-backend" {
source = "cloudposse/kops-state-backend/aws"
version = "0.3.0"
}
plain text: /constructs/tfmod-cloudposse-kops-state-backend-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

[![README Header][readme_header_img]][readme_header_link] [![Cloud Posse][logo]](https://cpco.io/homepage) terraform-aws-kops-state-backend ![Build Status](https://travis-ci.org/cloudposse/terraform-aws-kops-state-backend) ![Latest Release](https://github.com/cloudposse/terraform-aws-kops-state-backend/releases/latest) ![Slack Community](https://slack.cloudposse.com) Terraform module to provision dependencies for kops (config S3 bucket & DNS zone). The module supports the following: 1. Forced server-side encryption at rest for the S3 bucket 2. S3 bucket versioning to allow for kops state recovery in the case of accidental deletions or human errors 3. Block public access in bucket level by default --- This project is part of our comprehensive "SweetOps" approach towards DevOps. [ ][share_em

Inputs (16)
NameTypeDescriptionDefault
namespacestringNamespace (e.g. `eg` or `cp`) required
stagestringStage (e.g. `prod`, `dev`, `staging`) required
namestringName (e.g. `kops-state`)"kops-state"
parent_zone_idstringParent DNS zone ID""
force_destroystringA boolean that indicates all objects should be deleted from the bucket so that tfalse
domain_enabledstringA boolean that determines whether a DNS Zone for the kops domain is created"true"
cluster_namestringKops cluster name (e.g. `us-east-1` or `cluster-1`)"us-east-1"
delimiterstringDelimiter to be used between `namespace`, `stage`, `name`, and `attributes`"-"
attributeslistAdditional attributes (e.g. `1`)[]
tagsmapAdditional tags (e.g. map(`BusinessUnit`,`XYZ`){}
parent_zone_namestringParent DNS zone name (e.g. `domain.com`)""
regionstringAWS Region the S3 bucket should reside in"us-east-1"
aclstringThe canned ACL to apply to the S3 bucket"private"
block_public_access_enabledstringBlock all public access from bucket level"true"
zone_namestringTemplate for the DNS zone name"${name}.${parent_zone_name}"
create_bucketstringSet to `false` to use existing S3 bucket for kops state store instead of creatin"true"
Outputs (9)
zone_id — `kops` cluster zone ID
zone_name — `kops` cluster zone name
bucket_region — S3 bucket region
bucket_domain_name — S3 bucket domain name
bucket_id — S3 bucket ID
parent_zone_id — Parent zone ID
parent_zone_name — Parent zone name
bucket_name — S3 bucket name
bucket_arn — S3 bucket ARN
Resources (2)
aws_s3_bucketaws_s3_bucket_public_access_block
Details
FrameworkTerraform Module
LanguageHCL
Version0.3.0
Cloud AWS
★ Stars8
Forks11
Total downloads6.6k
Inputs16
Outputs9
Resources2
LicenseApache-2.0
Namespacecloudposse
Updated