-
Notifications
You must be signed in to change notification settings - Fork 25
/
main.tf
35 lines (30 loc) · 901 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
terraform {
required_version = ">= 0.12"
}
/**
* main.tf
* The main entry point for Terraform run
* See variables.tf for common variables
* See ecr.tf for creation of Elastic Container Registry for all environments
* See state.tf for creation of S3 bucket for remote state
*/
# Using the AWS Provider
# https://www.terraform.io/docs/providers/
provider "aws" {
version = ">= 2.23.0"
region = var.region
profile = var.aws_profile
}
/*
* Outputs
* Results from a successful Terraform run (terraform apply)
* To see results after a successful run, use `terraform output [name]`
*/
# Returns the name of the ECR registry, this will be used later in various scripts
output "docker_registry" {
value = aws_ecr_repository.app.repository_url
}
# Returns the name of the S3 bucket that will be used in later Terraform files
output "bucket" {
value = module.tf_remote_state.bucket
}