Comments (4)
Resources sound good, except for not sure how we can leverage the DNS record with an ASG?
We should also define the outputs. I think they would be...
outputs
security_group_id
variables
instance_type
namespace
,stage
,name
,attributes
,delimiter
,tags
- for label modulesubnet_ids
ssh_key_pair
Note, the labels module will output tags_as_list_of_maps
or something like that which is suitable for the autoscale group.
references
Refer to these modules/variables for inspiration:
- https://github.com/cloudposse/terraform-aws-ec2-instance-group/blob/master/variables.tf
- https://github.com/cloudposse/terraform-aws-ec2-instance/blob/master/variables.tf
- https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html
- https://github.com/bitflight-public/terraform-aws-ecs-cluster/blob/master/ondemand-autoscaling/main.tf
Note, @Jamie-BitFlight has offered to donate any/all of his code under the bitflight-public
repo to our cause, so feel free to borrow heavily against it @MoonMoon1919
from terraform-aws-ec2-autoscale-group.
That sounds good. I like that.
I was thinking the DNS record would be used only if enabled and an ELB and EIP was requested. Thoughts?
from terraform-aws-ec2-autoscale-group.
I think the ALB belongs outside of this module for greatest flexibility and re-use. For example, we're using these ALB modules for ECS, but they will work for many other use-cases.
Check these out:
- https://github.com/cloudposse/terraform-aws-alb-ingress
- https://github.com/cloudposse/terraform-aws-alb
- https://github.com/cloudposse/terraform-aws-alb-target-group-cloudwatch-sns-alarms
Perhaps the module can take as an input the target groups ARNs and use the aws_autoscaling_attachment
resource in the autoscale module to attach to those arns. This will let you use the alb-ingress
module to route traffic to that ARN.
https://www.terraform.io/docs/providers/aws/r/autoscaling_attachment.html
from terraform-aws-ec2-autoscale-group.
I like that, sounds good!
from terraform-aws-ec2-autoscale-group.
Related Issues (20)
- Use non deprecated tag keys PR causes bug HOT 3
- Support for `instance_requrirements` in launch_template to create EC2 instances
- Remove deprecated output tags - alter to tag HOT 2
- Support for lifecycle hooks
- The variable `instance_initiated_shutdown_behavior` not allowed in the Launch Template when used for an EC2 Auto Scaling group
- Instance refresh missing properties (scale_in_protected_instances and standby_instances)
- Action Required: Fix Renovate Configuration
- Scaling policy type does not support all its possible values HOT 2
- Support terraform 0.15
- desired_capacity should be optional HOT 1
- iam_instance_profile_name tends to always update when doing a terraform apply
- Dependency Dashboard
- Mark object type attributes as optional if they're optional in aws provider HOT 1
- Remove deprecated provider `hashicorp/template` HOT 1
- Add option to create ECS cluster with ASG HOT 1
- Deprecated `tags` attribute on aws v4 provider HOT 1
- Expose metadata_options {instance_metadata_tags}
- launch_template_version $Latest does not trigger instance refresh when user-data or launch_tempate is updated. HOT 2
- IOPS is not currently working with EBS block mapping
- Missing `throughput` in block_device_mappings.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-aws-ec2-autoscale-group.