Skip to content

Fix/dohrmy 131 & 148 templates delivery#59

Open
rlopezso wants to merge 4 commits into
integrationfrom
fix/DOHRMY-148-templates-delivery
Open

Fix/dohrmy 131 & 148 templates delivery#59
rlopezso wants to merge 4 commits into
integrationfrom
fix/DOHRMY-148-templates-delivery

Conversation

@rlopezso

Copy link
Copy Markdown
Collaborator

Changes to support DOHRMY-131 and DOHRMY-148

Changes Included

TerraformRunner.psm1

  • Updated the drift protection logic to execute only when the Terraform state file did not exist prior to Terraform initialization.

PropertyManager.psm1

  • Added mPulse entitlement validation. When enabled_mpulse is set to true, the workflow now verifies that mPulse is included in the contract before proceeding.

Sample tfvars Updates

  • Updated the new_property sample tfvars files for dev, qa, and prod environments to:

    • Add the forward_host_header variable.
    • Add the default_cpcode variable.
    • Adjust the additional_origins variable schema.

new_property/main.tf

  • Removed the use of var.dummy_test.
  • Added support for var.forward_host_header.
  • Added support for var.default_cpcode.

new_property/variables.tf

  • Added definitions and validation for:

    • forward_host_header
    • default_cpcode
  • Updated the additional_origins variable schema.

  • Refactored several cross-variable validations into Terraform check blocks, as recent Terraform versions no longer reliably support validations that reference other variables within a variable validation block.

new_property/versions.tf

Updated the Akamai provider version constraint to support version 10.1.

rlopezso and others added 3 commits June 5, 2026 11:09
* Added validation in `PropertyManager.psm1` to verify that mPulse is available in the contract when the corresponding Terraform variable is enabled.
* Removed the unused `dummy_test` variable.
* Added the `forward_host_header` variable to support parameterization of the Forward Host Header setting within the module.
* Updated the `additional_origins` variable to align with the Forward Host Header enhancements.
* Added the `default_cpcode` variable to allow selection of the default CP Code.
* Corrected typos in variable descriptions.
* Updated `ip_behavior` validation to support only `IPV4` and `IPV6_COMPLIANCE`.

Terraform variable templates (`.tfvars`) were updated to reflect the above changes.

Additionally, several variable validation rules were refactored. Since newer Terraform versions no longer allow cross-variable references within validation conditions, equivalent pre-validation checks were implemented in `main.tf`.
- adjust deploy script and update provider/variable configurations
- Run drift only when state file existed before initializing terraform
- Move check blocks to variables file
- Set akamai provider version to "10.1"
- Add default_cpcode to tfvar sample files
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Deployment Test Results

17 tests   17 ✅  0s ⏱️
 7 suites   0 💤
 1 files     0 ❌

Results for commit c443275.

♻️ This comment has been updated with latest results.

Comment thread new-property/main.tf Outdated
module "property" {
source = "git::ssh://git@github.com/akamai/terraform-templates-modules.git//delivery?ref=v1.3.3"

source = "git::ssh://git@github.com/akamai/terraform-templates-modules.git//delivery?ref=integration"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@rlopezso you should be able to set the tag to v1.5.0 instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants