-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor AMI configuration in morpheus.tf and add base_images.tf and …
…variables.tf This commit refactors the AMI configuration in morpheus.tf by introducing a local variable for the AMI ID and updating the module configuration accordingly. Additionally, it adds the base_images.tf file, which contains a data source for the AWS SSM parameter "rhel9_ami". Finally, it includes the variables.tf file, which defines the "use_rhel9_ami" variable to control whether to use the RHEL 9 AMI.
- Loading branch information
Showing
3 changed files
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| data aws_ssm_parameter "rhel9_ami" { | ||
| count = var.use_rhel9_ami ? 1 : 0 | ||
| name = "/enterprise/ami/rhel9" | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| variable use_rhel9_ami { | ||
| description = "Use RHEL 9 AMI" | ||
| type = bool | ||
| default = false | ||
| } |