Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion stacks_migration_infra/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,10 @@ resource "tfmigrate_stack_migration" "stack_migration" {
project = tfe_project.stack_project.name
terraform_config_dir = var.terraform_config_dir
workspace_deployment_mapping = var.workspace_deployment_mapping
}
}

import {
to = tfe_project.stack_project
id = "prj-XzHVjdCZnmdcPEDS"
}

6 changes: 3 additions & 3 deletions stacks_migration_infra/output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ locals {
stack_deployment_details = (
tfmigrate_stack_migration.stack_migration.migration_hash != "" ?
provider::tfmigrate::decode_stacks_migration_hash_to_json(
tfmigrate_stack_migration.stack_migration.migration_hash
) : null
tfmigrate_stack_migration.stack_migration.migration_hash
) : null
)
}

output "stack_deployment_details" {
value = local.stack_deployment_details
}
}
4 changes: 2 additions & 2 deletions stacks_migration_infra/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ variable "tfe_hostname" {
}

variable "project_name" {
default = "new-stacks-project"
default = "Tf-Migrate-Stack-Migration-Retry-Test"
}

variable "stack_name" {
default = "new-stacks-v1"
default = "hello-stacks-v5"
}

variable "stacks_config_file_dir" {
Expand Down