Skip to content

Commit

Permalink
Combine wget and java11 installation
Browse files Browse the repository at this point in the history
  • Loading branch information
ADOT Patch workflow committed Jan 11, 2024
1 parent 58f150d commit b8a2def
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions testing/terraform/ec2/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,8 @@ resource "null_resource" "main_service_setup" {

provisioner "remote-exec" {
inline = [
# Install wget
"yes | sudo yum install wget",
# Install Java 11
"sudo yum install java-11-amazon-corretto -y",
# Install Java 11 and wget
"sudo yum install wget java-11-amazon-corretto -y",

# Copy in CW Agent configuration
"agent_config='${replace(replace(file("./amazon-cloudwatch-agent.json"), "/\\s+/", ""), "$REGION", var.aws_region)}'",
Expand Down Expand Up @@ -152,10 +150,8 @@ resource "null_resource" "remote_service_setup" {

provisioner "remote-exec" {
inline = [
# Install wget
"yes | sudo yum install wget",
# Install Java 11
"sudo yum install java-11-amazon-corretto -y",
# Install Java 11 and wget
"sudo yum install wget java-11-amazon-corretto -y",

# Copy in CW Agent configuration
"agent_config='${replace(replace(file("./amazon-cloudwatch-agent.json"), "/\\s+/", ""), "$REGION", var.aws_region)}'",
Expand Down

0 comments on commit b8a2def

Please sign in to comment.