mirror of
https://github.com/farcasclaudiu/terraform-course.git
synced 2026-06-28 23:02:12 +03:00
docker-demo-1
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
resource "aws_ecr_repository" "myapp" {
|
||||||
|
name = "myapp"
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
output "myapp-repository-URL" {
|
||||||
|
value = "${aws_ecr_repository.myapp.repository_url}"
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
provider "aws" {
|
||||||
|
region = "${var.AWS_REGION}"
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
variable "AWS_REGION" {
|
||||||
|
default = "eu-west-1"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user