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

Error deploying to US Government cloud using Azure Cloud Shell #528

Closed
brooke-hamilton opened this issue Nov 16, 2021 · 1 comment
Closed
Labels
AzureGov This issue is specific to the Azure Government cloud. bug Something isn't working 🛑 Blocker Terraform Related to Terraform code

Comments

@brooke-hamilton
Copy link
Contributor

Description

Deploying with Azure Cloud Shell to the US Government cloud (environment = usgovernment) fails with an error. The error is caused by an issue in the Terraform Azure RM provider: hashicorp/terraform-provider-azurerm#7787. This bug will be resolved when that issue is resolved and the fix is deployed to the Azure Cloud Shell on the US Government portal.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Launch azure cloud shell in Azure US Government (portal.azure.us)
  2. Follow the instructions at https://github.com/Azure/missionlz/tree/main/src/terraform#deploying-to-other-clouds to deploy to the US Government cloud.

Expected behavior

Successful deployment

Actual behavior

When running terraform apply the error below happens:

╷
│ Error: expected "access_policy.0.object_id" to be a valid UUID, got
│
│   with module.jumpbox[0].azurerm_key_vault.jumpbox-keyvault,
│   on ../modules/jumpbox/main.tf line 18, in resource "azurerm_key_vault" "jumpbox-keyvault":
│   18:     object_id = var.object_id
│
╵

Workaround

Deployments to the US Government cloud succeeds using the development container.

Additional context

Operating System: Azure Cloud Shell: portal.azure.us
Terraform Version:

Terraform v1.0.10
on linux_amd64
+ provider registry.terraform.io/hashicorp/azurerm v2.83.0
+ provider registry.terraform.io/hashicorp/random v3.1.0
+ provider registry.terraform.io/hashicorp/time v0.7.2

Cloud (public, Azure Government, etc.): Azure Government (usgovernment)

@brooke-hamilton brooke-hamilton added the bug Something isn't working label Nov 16, 2021
@brooke-hamilton brooke-hamilton added Terraform Related to Terraform code AzureGov This issue is specific to the Azure Government cloud. labels Dec 5, 2021
@brooke-hamilton brooke-hamilton added the 🛑 Blocker label Mar 2, 2022
@jamasten
Copy link
Contributor

We will not be updating the terraform code and will be deprecating the terraform code on June 30, 2024.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AzureGov This issue is specific to the Azure Government cloud. bug Something isn't working 🛑 Blocker Terraform Related to Terraform code
Projects
None yet
Development

No branches or pull requests

2 participants