Skip to content

Commit

Permalink
Primeiro commit
Browse files Browse the repository at this point in the history
  • Loading branch information
diego.rafael committed Sep 24, 2024
1 parent 3a75010 commit fc6fbd0
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ override.tf.json

# Ignore transient lock info files created by terraform apply
.terraform.tfstate.lock.info
.terraform.lock*

# Include override files you do wish to add to version control using negated pattern
# !example_override.tf
Expand Down
32 changes: 30 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,30 @@
# terraform-aws-Diego-Rafael_produto
Repositório produto do cenário do projeto final
<!-- BEGIN_TF_DOCS -->
## Requirements

| Name | Version |
|------|---------|
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 5.0 |

## Providers

No providers.

## Modules

| Name | Source | Version |
|------|--------|---------|
| <a name="module_ec2"></a> [ec2](#module\_ec2) | github.com/descomplicando-terraform/terraform-aws-Diego-Rafael_groundwork/ec2 | n/a |
| <a name="module_vpc"></a> [vpc](#module\_vpc) | github.com/descomplicando-terraform/terraform-aws-Diego-Rafael_groundwork/vpc | n/a |

## Resources

No resources.

## Inputs

No inputs.

## Outputs

No outputs.
<!-- END_TF_DOCS -->
19 changes: 19 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module "ec2" {
source = "github.com/descomplicando-terraform/terraform-aws-Diego-Rafael_groundwork/ec2"
instance_name_prefix = "web"
instance_web_count = 2
subnets_map = module.vpc.subnets_map
instance_type = "t2.nano"
ebs_block_device = [
{
device_name_root = "/dev/sda1"
volume_size_web = 8
}
]
}


module "vpc" {
source = "github.com/descomplicando-terraform/terraform-aws-Diego-Rafael_groundwork/vpc"
vpc_cidr_block = "192.168.2.0/24"
}
13 changes: 13 additions & 0 deletions provider.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
}
}

# Configure the AWS Provider
provider "aws" {
region = "us-east-1"
}

0 comments on commit fc6fbd0

Please sign in to comment.