Skip to content

Commit

Permalink
added terraform deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
ybmadhu committed Aug 6, 2021
1 parent 79fd3d4 commit b2f1077
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
- name: terraform initialization
run: cd devops/ && terraform init
- name: terraform deployment
run: cd devops/ && terraform apply -var="tag=${{ env.RELEASE_VERSION }}" -auto-approve
4 changes: 2 additions & 2 deletions devops/ecs.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
resource "aws_ecs_cluster" "main" {
name = "jms-cluster"
}
data "aws_ecr_repository" "nodeapp"{
name = "nodeproj"
data "aws_ecr_repository" "nodeapp" {
name = "nodeapp"
}
data "template_file" "cb_app" {
template = file("./templates/ecs/cb_app.json.tpl")
Expand Down

0 comments on commit b2f1077

Please sign in to comment.