Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

ECS Fargate:

AWS ECS (Elastic Container Service) Fargate is a serverless compute engine offered by Amazon Web Services (AWS) for deploying and managing containerized applications. It simplifies the process of running containers at scale without the need to manage the underlying infrastructure. With ECS Fargate, you can focus on your application logic and let AWS handle the provisioning, scaling, and maintenance of the compute resources.

...

Step 1: Run below command for 1-Infrastructure

Code Block
cd ecs_fargate

...

/1-Infrastructure

...


terraform init

...


terraform apply -auto-approve

Step 2: Run below command for 2-Platform

Code Block
cd ../2-Platform

...



##Replace your SSL_certificate_arn at line 122 in 2-Platform/variable.tf file

...



##Replace with your actual IP address at line no. 118

...



terraform init

...



terraform apply -auto-approve

Step 3: Run below command for 3-Application

Code Block
cd ../3-Application

...



##In terraform.tfvars you can provide the version of knowhow that you want to install. (Example - 7.2.0)

...



terraform init

...



terraform apply -auto-approve

 

How do we run terraform script to install knowhow on ECS with existing services:

...

Here's an example of what an S3 bucket resource block might look like in Terraform:

Code Block
# resource "aws_s3_bucket" "example_bucket" {

...


#   bucket = "example-bucket"

...


# }

  1. Import Existing Resources:

...

In your output.tf file, you can define an output for the imported S3 bucket's ID:

Code Block
output "imported_bucket_id" {

...


  value = aws_s3_bucket.example_bucket.id

...


}

Now, any other Terraform configurations or external systems can reference this output value to interact with the existing S3 bucket.

...