Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Informatica Secure Agent
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
interop
iics
Informatica Secure Agent
Commits
1bdcfe5e
Commit
1bdcfe5e
authored
4 years ago
by
Chelsea Gille
Browse files
Options
Downloads
Patches
Plain Diff
Force a new deployment of the autoscaling group when changes are made to the launch config
parent
17b983ba
Branches
increase-resources
Branches containing commit
No related tags found
1 merge request
!41
Force a new deployment of the autoscaling group when changes are made to the launch config
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
terraform/autoscaling-group.tf
+24
-22
24 additions, 22 deletions
terraform/autoscaling-group.tf
with
24 additions
and
22 deletions
terraform/autoscaling-group.tf
+
24
−
22
View file @
1bdcfe5e
resource
"aws_autoscaling_group"
"secure-agent-autoscaling-group"
{
# as per our current licesning in IICS, each docker instance that
# runs on EC2 will treat at as a new license.
name
=
"secure-agent-autoscaling-group"
desired_capacity
=
1
max_size
=
1
min_size
=
1
# make sure deployed EC2 instance is in the same AZ as the EFS
# see https://docs.aws.amazon.com/efs/latest/ug/mounting-fs-mount-cmd-dns-name.html
vpc_zone_identifier
=
[
sort
(
data
.
aws_subnet_ids
.
subnets
.
ids
)[
0
]]
health_check_type
=
"EC2"
launch_configuration
=
aws_launch_configuration
.
secure-agent-launch-config
.
name
tag
{
key
=
"Name"
value
=
"IICS Secure Agent"
propagate_at_launch
=
true
}
}
data
"aws_ssm_parameter"
"ecs-optimized"
{
data
"aws_ssm_parameter"
"ecs-optimized"
{
name
=
"/aws/service/ecs/optimized-ami/amazon-linux-2/recommended/image_id"
name
=
"/aws/service/ecs/optimized-ami/amazon-linux-2/recommended/image_id"
}
}
resource
"aws_launch_configuration"
"secure-agent-launch-config"
{
resource
"aws_launch_configuration"
"secure-agent-launch-config"
{
name
=
"secure-agnet-launch-configuration"
# Fix me: Make this use the ecs-optimized parameter so that it always uses the latest version.
# Fix me: Make this use the ecs-optimized parameter so that it always uses the latest version.
image_id
=
"ami-00f69adbdc780866c"
image_id
=
"ami-00f69adbdc780866c"
...
@@ -44,3 +22,27 @@ resource "aws_launch_configuration" "secure-agent-launch-config" {
...
@@ -44,3 +22,27 @@ resource "aws_launch_configuration" "secure-agent-launch-config" {
create_before_destroy
=
true
create_before_destroy
=
true
}
}
}
}
resource
"aws_autoscaling_group"
"secure-agent-autoscaling-group"
{
# as per our current licesning in IICS, each docker instance that
# runs on EC2 will treat at as a new license.
name
=
"secure-agent-autoscaling-group-
${
aws_launch_configuration
.
secure-agent-launch-config
.
name
}
"
desired_capacity
=
1
max_size
=
1
min_size
=
1
min_elb_capacity
=
1
# make sure deployed EC2 instance is in the same AZ as the EFS
# see https://docs.aws.amazon.com/efs/latest/ug/mounting-fs-mount-cmd-dns-name.html
vpc_zone_identifier
=
[
sort
(
data
.
aws_subnet_ids
.
subnets
.
ids
)[
0
]]
health_check_type
=
"EC2"
launch_configuration
=
aws_launch_configuration
.
secure-agent-launch-config
.
name
tag
{
key
=
"Name"
value
=
"IICS Secure Agent"
propagate_at_launch
=
true
}
lifecycle
{
create_before_destroy
=
true
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment