Skip to content

champ-oss/terraform-aws-rds-snapshot-account-share-lambda

Repository files navigation

terraform-aws-rds-snapshot-account-share-lambda

Summary: terraform module for aws rds snapshot account share utility

ci version

Table of Contents

General Information

  • deploy lambda python function used to copy latest snapshot from rds mysql and aurora database and share with aws account

Technologies Used

  • terraform
  • github actions
  • Lambda
  • python

Features

  • deploy lambda python function
  • rds lambda function gets latest snapshot and shares with another aws account
  • iam policy required to use rds snapshot resources

Usage

  • look at examples/complete/main.tf for usage

Requirements

No requirements.

Providers

Name Version
aws n/a
random n/a

Modules

Name Source Version
rds_snapshot_account_share_lambda github.com/champ-oss/terraform-aws-lambda.git v1.0.96-782138d

Resources

Name Type
aws_iam_policy.this resource
aws_iam_role_policy_attachment.this resource
random_string.identifier resource

Inputs

Name Description Type Default Required
aws_shared_account snapshot aws account share string "" no
enable_lambda_cw_event enable or disable cloudwatch event trigger for lambda bool true no
git Name of the Git repo string "terraform-aws-mysql" no
kms_key_id kms key id string "" no
lambda_policy point to data.aws_iam_policy_document.custom.json any null no
private_subnet_ids https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/db_subnet_group#subnet_ids list(string) n/a yes
rds_snapshot_account_share_docker_tag Docker tag of rds snapshot share code to deploy string "928ed26a36bd0dd7c55e21b7aa9b455d8f0133e1" no
schedule_expression event schedule for lambda string "cron(0 5,6,7,8 * * ? *)" no
tags Map of tags to assign to resources map(string) {} no
timeout https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_function#timeout number 300 no
vpc_id https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/security_group#vpc_id string n/a yes

Outputs

No outputs.

Project Status

Project is: in_progress

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages