Deploy your CloudFront Lambda@Edge
- Install terraform
- Install AWS CLI
- Set AWS credential in your environment,
aws configure --profile your_profile_name
Modify terraform.tfvars.template to terraform.tfvars, and set the tfvars
- aws_profile = "your aws profile"
- aws_region = "your aws default region"
- resource_tags.project = "your project name"
-
Deploy resources:
terraform initterraform planterraform apply -
Delete resources:
terraform destroy
- CloudFront
- Lambda Function (Lambda@Edge)
- IAM Role
- Cloudwatch Log Group