terraform-aws-elasticbeanstalk

所属分类:网络编程
开发工具:HCL
文件大小:0KB
下载次数:0
上传日期:2022-02-27 11:44:58
上 传 者sh-1993
说明:  Terraform模块,用于创建具有DNS、SSL和Cloudwatch配置的弹性Beanstalk web服务器环境。,
(Terraform module to create an Elastic Beanstalk web server environment with DNS, SSL and Cloudwatch configurations.,)

文件列表:
LICENSE (35149, 2022-02-27)
main.tf (1382, 2022-02-27)
modules/ (0, 2022-02-27)
modules/beanstalk/ (0, 2022-02-27)
modules/beanstalk/main.tf (8011, 2022-02-27)
modules/beanstalk/outputs.tf (475, 2022-02-27)
modules/beanstalk/vars.tf (437, 2022-02-27)
modules/cloudwatch/ (0, 2022-02-27)
modules/cloudwatch/main.tf (2702, 2022-02-27)
modules/cloudwatch/vars.tf (205, 2022-02-27)
modules/dns_and_ssl/ (0, 2022-02-27)
modules/dns_and_ssl/main.tf (1167, 2022-02-27)
modules/dns_and_ssl/outputs.tf (70, 2022-02-27)
modules/dns_and_ssl/vars.tf (119, 2022-02-27)
src/ (0, 2022-02-27)
src/eb-tf.png (121656, 2022-02-27)
terraform.tfvars (376, 2022-02-27)
vars.tf (316, 2022-02-27)

# Elastic Beanstalk WebServer Environment with Terraform ![Elastic Beanstalk Deployment with Terraform](https://github.com/emreoztoprak/terraform-aws-elasticbeanstalk/blob/master/src/eb-tf.png) This terraform configuration will create Elastic Beanstalk WebServer Environment Amazon Linux 2 and PHP 8.0, ACM certificate and DNS validation for your domain, Cloudwatch alarms for Elastic Beanstalk Environment and finally it will create A record for your domain and point to Elastic Beanstalk Environment. I also redirected all HTTP traffic to HTTPS in this configuration. I set up dynamically the solution stack so you don't have to worry if a new platform version of PHP 8.0 is released.

Before deployment create **key pair** and use name of that key pair in variables file. Also you have to existing **SNS Topic** for your alarm notification and **Route53 Public Hosted Zone** for your domain.
Change these variables in the terraform.tfvars file with your own before the deployment.
``` region = "us-east-1" domain_name = "example.com" app_tags = "Example" application_name = "Example-App" vpc_id = "vpc-ee2325320" ec2_subnets = "subnet-d1c325ab" elb_subnets = ["subnet-d1c325ab","subnet-d1c565ab"] instance_type = "t3.micro" disk_size = "20" keypair = "example" sshrestrict="12.34.56.78/32" alarm_sns_topic = "arn:aws:sns:us-east-1:123456788900:TOPIC" ```
When everything is ready you can deploy with these 4 commands. ### Deployment ``` terraform init terraform validate terraform plan terraform apply ```

近期下载者

相关文件


收藏者