A Lambda Layer CLI Tool to Build and Deploy AWS Lambda Layers
- Docker
go build -o lambda-layer main.go
package main | |
import ( | |
"bufio" | |
"bytes" | |
"errors" | |
"flag" | |
"fmt" | |
"log" | |
"os" |
# Terraform state will be stored on Shared-Services | |
# No interpolations allowed here!!!!! | |
terraform { | |
backend "s3" { | |
bucket = "terraform-state-shared-services" # Shared Services | |
region = "us-east-1" | |
profile = "shared-services" | |
# Set this only when using Terraform Workspaces | |
key = "dns/zones/terraform.tfstate" | |
dynamodb_table = "shared-services-lock-table" |
# Terraform state will be stored on Shared-Services | |
# No interpolations allowed here!!!!! | |
terraform { | |
backend "s3" { | |
bucket = "terraform-state-shared-services" # Shared Services | |
region = "us-east-1" | |
profile = "shared-services" | |
# Set this only when using Terraform Workspaces | |
key = "lab/web-ui/terraform.tfstate" | |
dynamodb_table = "shared-services-lock-table" |
resource "random_password" "rds_password" { | |
length = 16 # Specify the desired password length | |
special = true # Include special characters in the password | |
override_special = "_!@#" # Optional: Specify additional special characters | |
} | |
module "security_group" { | |
source = "git::https://github.com/terraform-aws-modules/terraform-aws-security-group.git//" | |
name = "${var.identifier}-db" |