This repository has been archived by the owner on Jun 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
fix: use output from ebs_volume_attachment to determine device name, … #45
Open
konturn
wants to merge
1
commit into
tlc-pack:main
Choose a base branch
from
konturn:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
konturn
force-pushed
the
main
branch
4 times, most recently
from
May 27, 2022 21:50
db1dce3
to
d06dce7
Compare
…rather than hardcoding in startup script
Terraform plan in . in the tvm-ci-prod workspace Plan: 3 to add, 1 to change, 3 to destroy.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
~ update in-place
-/+ destroy and then create replacement
Terraform will perform the following actions:
# module.head_node.aws_eip.static will be updated in-place
~ resource "aws_eip" "static" {
id = "eipalloc-09507c4c36cba0933"
~ instance = "i-0ac32f53a6b366a0e" -> (known after apply)
tags = {
"Name" = "eip-jenkins-server-prod"
}
# (12 unchanged attributes hidden)
}
# module.head_node.aws_instance.jenkins_head_node must be replaced
-/+ resource "aws_instance" "jenkins_head_node" {
~ arn = "arn:aws:ec2:us-west-2:477529581014:instance/i-0ac32f53a6b366a0e" -> (known after apply)
~ associate_public_ip_address = true -> (known after apply)
~ availability_zone = "us-west-2a" -> (known after apply)
~ cpu_core_count = 8 -> (known after apply)
~ cpu_threads_per_core = 2 -> (known after apply)
~ disable_api_termination = false -> (known after apply)
~ ebs_optimized = false -> (known after apply)
- hibernation = false -> null
+ host_id = (known after apply)
~ id = "*******************" -> (known after apply)
~ instance_initiated_shutdown_behavior = "stop" -> (known after apply)
~ instance_state = "running" -> (known after apply)
~ ipv6_address_count = 0 -> (known after apply)
~ ipv6_addresses = [] -> (known after apply)
~ monitoring = false -> (known after apply)
+ outpost_arn = (known after apply)
+ password_data = (known after apply)
+ placement_group = (known after apply)
+ placement_partition_number = (known after apply)
~ primary_network_interface_id = "*********************" -> (known after apply)
~ private_dns = "ip-10-100-192-214.us-west-2.compute.internal" -> (known after apply)
~ private_ip = "10.100.192.214" -> (known after apply)
~ public_dns = "ec2-54-184-159-219.us-west-2.compute.amazonaws.com" -> (known after apply)
~ public_ip = "54.184.159.219" -> (known after apply)
~ secondary_private_ips = [] -> (known after apply)
~ security_groups = [] -> (known after apply)
tags = {
"Environment" = "title(var.environment)"
"Name" = "Prod-Jenkins-Head-Node"
}
~ tenancy = "default" -> (known after apply)
~ user_data = "6943aab2ad9d4941543300edb36e0ce4bca1a3ff" -> "bfad437f5d4a02b60f0cc18f80dafd9194869454" # forces replacement
+ user_data_base64 = (known after apply)
# (9 unchanged attributes hidden)
~ capacity_reservation_specification {
~ capacity_reservation_preference = "open" -> (known after apply)
+ capacity_reservation_target {
+ capacity_reservation_id = (known after apply)
}
}
- credit_specification {
- cpu_credits = "unlimited" -> null
}
+ ebs_block_device {
+ delete_on_termination = (known after apply)
+ device_name = (known after apply)
+ encrypted = (known after apply)
+ iops = (known after apply)
+ kms_key_id = (known after apply)
+ snapshot_id = (known after apply)
+ tags = (known after apply)
+ throughput = (known after apply)
+ volume_id = (known after apply)
+ volume_size = (known after apply)
+ volume_type = (known after apply)
}
- ebs_block_device {
- delete_on_termination = false -> null
- device_name = "/dev/sdf" -> null
- encrypted = false -> null
- iops = 1500 -> null
- tags = {
- "Name" = "Prod-Jenkins-Persistent-Storage"
} -> null
- throughput = 0 -> null
- volume_id = "vol-07cbe57bb0255fbf0" -> null
- volume_size = 500 -> null
- volume_type = "gp2" -> null
}
~ enclave_options {
~ enabled = false -> (known after apply)
}
+ ephemeral_block_device {
+ device_name = (known after apply)
+ no_device = (known after apply)
+ virtual_name = (known after apply)
}
~ metadata_options {
~ http_endpoint = "enabled" -> (known after apply)
~ http_put_response_hop_limit = 1 -> (known after apply)
~ http_tokens = "********" -> (known after apply)
~ instance_metadata_tags = "disabled" -> (known after apply)
}
+ network_interface {
+ delete_on_termination = (known after apply)
+ device_index = (known after apply)
+ network_interface_id = (known after apply)
}
~ root_block_device {
~ device_name = "/dev/sda1" -> (known after apply)
~ encrypted = false -> (known after apply)
~ iops = 1500 -> (known after apply)
+ kms_key_id = (known after apply)
- tags = {} -> null
~ throughput = 0 -> (known after apply)
~ volume_id = "*********************" -> (known after apply)
~ volume_type = "gp2" -> (known after apply)
# (2 unchanged attributes hidden)
}
# (1 unchanged block hidden)
}
# module.head_node.aws_lb_target_group_attachment.head_node must be replaced
-/+ resource "aws_lb_target_group_attachment" "head_node" {
~ id = "**********************************************************************************************************************" -> (known after apply)
~ target_id = "*******************" -> (known after apply) # forces replacement
# (1 unchanged attribute hidden)
}
# module.head_node.aws_volume_attachment.jobs_storage must be replaced
-/+ resource "aws_volume_attachment" "jobs_storage" {
~ id = "**************" -> (known after apply)
~ instance_id = "*******************" -> (known after apply) # forces replacement
# (2 unchanged attributes hidden)
}
Plan: 3 to add, 1 to change, 3 to destroy. 📝 Plan generated in terraform #161 |
driazati
approved these changes
May 27, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
cc @driazati