This tutorial assumes that you've completed
To start, create variables.tf and add the following variables.
variable "application_name" {
description = "Name of the application"
type = string
}
variable "aws_vpc_id" {
description = "VPC ID"
type = string
}
variable "jenkins_controller_identifier" {
description = "Name of the jenkins controller"
type = string
}
variable "jenkins_agent_port" {
description = "Port Jenkins agent uses to connect to controller"
type = number
}
variable "jenkins_controller_port" {
description = "Port used to connect to Jenkins controller"
type = number
}
Next, create terraform.tfvars to give your variables values. Remember the network we created in lesson one. Assuming you made that, grab the VPC ID and set the value for aws_vpc_id.
Navigate to Amazon Elastic Container Service -> Clusters -> serverless-jenkins-on-ecs -> Tasks -> your-task -> Logs and get the password from the logs.
ECS Cluster
ECS Tasks
Fin.
GitHub Repo: https://github.com/jWatsonDev/jenkins-ecs-fargate
SOCIAL SHARE CARD GENERATOR