Skip to content

yevgeniyo-ps/lambda-ami-slack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AMI backup creator

This project created for automating process of EC2 AMI`s creation.

Topology

Screen Shot 2020-06-23 at 15 57 39

IAM

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "directorEc2",
            "Effect": "Allow",
            "Action": [
                "ec2:DescribeRegions",
                "ec2:DescribeInstances",
                "ec2:DescribeImages",
                "ec2:CreateImage",
                "ec2:DescribeSnapshots",
                "ec2:DeregisterImage",
                "ec2:DeleteSnapshot",
                "ec2:CreateSnapshot"
            ],
            "Resource": "*"
        }
    ]
}

Prepearing .zip

  • pip install requests -t .
  • zip -r ../myDeploymentPackage.zip .

Environment Variables

  • RETENTION - number of days
  • SLACK_CHANNEL_NAME - name of slack channel where you want to get notifications
  • SLACK_WEBHOOK_URL - slack web hook URL

Slack output

Screen Shot 2020-06-23 at 16 03 06

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages