Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use vm_size in AWS modules #265

Merged
merged 1 commit into from
Sep 3, 2024
Merged

Conversation

mpagot
Copy link
Collaborator

@mpagot mpagot commented Sep 2, 2024

Try to use a uniform naming convention for modules across different cloud providers.
This PR intentionally only change internal modules API and does not touch terraform/aws/variables.tf.
In this way the end user has not to change anything in the conf.yaml.
Remove some vm_size default at module level, only to have defaults in the upper layer and in a single place.
Reorder variables fields always to have description at first place.

Ticket: https://jira.suse.com/browse/TEAM-7678

Verification

sle-15-SP6-Qesap-Aws-Byos-x86_64-BuildLATEST_AWS_SLE15_6_BYOS-qesap_aws_r48xlarge_test@64bit

# module.hana_node.aws_instance.hana[0] will be created
  + resource "aws_instance" "hana" {
    ...
      + instance_type                        = "r4.8xlarge"

sle-15-SP6-Qesap-Aws-Byos-x86_64-BuildLATEST_AWS_SLE15_6_BYOS-qesap_aws_r5bmetal_test@64bit

@a-kpappas a-kpappas added the WIP Work In Progress label Sep 2, 2024
Try to use a uniform naming convention for modules across different
cloud providers. This commit intentionally only change internal modules
API and does not touch `terraform/aws/variables.tf`. In this way the end
user has not to change anything in the conf.yaml.
Remove some vm_size default at module level, only to have defaults in
the upper layer and in a single place.
Reorder variables fields always to have description at first place.
@mpagot mpagot force-pushed the tfvars_vm_type_module branch from eeb87d9 to 321f426 Compare September 3, 2024 07:13
@mpagot mpagot marked this pull request as draft September 3, 2024 07:20
@@ -11,18 +11,27 @@ variable "resource_group_name" {
type = string
}

variable "drbd_count" {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Just reorder variables making this file more similar to the AWS one

@mpagot mpagot removed the WIP Work In Progress label Sep 3, 2024
@mpagot mpagot marked this pull request as ready for review September 3, 2024 08:38
Copy link
Collaborator

@BillAnastasiadis BillAnastasiadis left a comment

Choose a reason for hiding this comment

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

LGTM

@mpagot mpagot merged commit aea9abd into SUSE:main Sep 3, 2024
3 checks passed
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