Skip to content

Commit

Permalink
Feat: Deploy app with Terraform on Azure Container Apps
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlesne committed Nov 29, 2023
1 parent 32e4417 commit 374255f
Show file tree
Hide file tree
Showing 8 changed files with 935 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ lint:

upgrade:
@make -C cicd/helm upgrade
@make -C cicd/terraform upgrade
@make -C src/conversation-api upgrade
@make -C src/conversation-ui upgrade

Expand Down
43 changes: 43 additions & 0 deletions cicd/terraform/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Local Terraform tfvars file
.tfvars.json

# Created by https://www.toptal.com/developers/gitignore/api/terraform
# Edit at https://www.toptal.com/developers/gitignore?templates=terraform

### Terraform ###
# Local .terraform directories
**/.terraform/*

# .tfstate files
*.tfstate
*.tfstate.*

# Crash log files
crash.log
crash.*.log

# Exclude all .tfvars files, which are likely to contain sensitive data, such as
# password, private keys, and other secrets. These should not be part of version
# control as they are data points which are potentially sensitive and subject
# to change depending on the environment.
*.tfvars
*.tfvars.json

# Ignore override files as they are usually used to override resources locally and so
# are not checked in
override.tf
override.tf.json
*_override.tf
*_override.tf.json

# Include override files you do wish to add to version control using negated pattern
# !example_override.tf

# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
# example: *tfplan*

# Ignore CLI configuration files
.terraformrc
terraform.rc

# End of https://www.toptal.com/developers/gitignore/api/terraform
82 changes: 82 additions & 0 deletions cicd/terraform/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions cicd/terraform/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.PHONY: install deploy dry-run

install:
terraform init

upgrade:
terraform init -upgrade

deploy:
terraform apply -auto-approve -var-file=.tfvars.json

dry-run:
terraform plan -var-file=.tfvars.json
Loading

0 comments on commit 374255f

Please sign in to comment.