Skip to content

Terraform Modules#1

Closed
RashRAJ wants to merge 4 commits into
mainfrom
dev
Closed

Terraform Modules#1
RashRAJ wants to merge 4 commits into
mainfrom
dev

Conversation

@RashRAJ
Copy link
Copy Markdown
Collaborator

@RashRAJ RashRAJ commented Feb 21, 2023

Created the instance, load balancer and security group module

@RashRAJ RashRAJ requested review from Techebraheem, Timtech4u, brightballo and m3rryqold and removed request for m3rryqold February 21, 2023 14:33
Copy link
Copy Markdown

@m3rryqold m3rryqold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RashRAJ
This looks good to go. I would also suggest reusing some standard modules from https://registry.terraform.io/namespaces/terraform-aws-modules.

This may be useful:
https://developer.hashicorp.com/terraform/language/modules/develop#module-structure

Copy link
Copy Markdown
Contributor

@Timtech4u Timtech4u left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome @RashRAJ - I'll test and give a proper review in a bit

Comment on lines +1 to +5
provider "aws" {
access_key = "${var.access_key}"
secret_key = "${var.secret_key}"
region = "${var.region}"
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
provider "aws" {
access_key = "${var.access_key}"
secret_key = "${var.secret_key}"
region = "${var.region}"
}

@RashRAJ we can take this out as it would be defined by the module user e.g.
#2

Copy link
Copy Markdown
Contributor

@Timtech4u Timtech4u left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RashRAJ I tried using this module in my PR but it fails cause of the spaces.
It'll be good to not have spaces in Terraform modules.

Failing action: https://github.com/hostspaceng/Terraform/actions/runs/4275537866/jobs/7442962431

@RashRAJ RashRAJ closed this Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants