forked from angelo-malatacca/Terraform-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvpc.tf
More file actions
28 lines (25 loc) · 750 Bytes
/
Copy pathvpc.tf
File metadata and controls
28 lines (25 loc) · 750 Bytes
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
provider "aws" {
version = "~> 2.0"
shared_credentials_file = "~/.aws/credentials"
profile = "terraform"
region = "eu-west-1"
}
/*# Backend must remain commented until the Bucket
and the DynamoDB table are created.
After the creation you can uncomment it,
run "terraform init" and then "terraform apply" */
# terraform {
# backend "s3" {
# bucket = "angelo-terraform-state-backend"
# key = "terraform.tfstate"
# region = "eu-west-1"
# dynamodb_table = "terraform_state"
# }
# }
resource "aws_vpc" "vpc" {
cidr_block = "10.0.0.0/16"
instance_tenancy = "default"
tags = {
Name = "vpc"
}
}