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

AWS Manual Power-Managed Catalog - Could Not Find Resource #48

Closed
amshaffer opened this issue Mar 22, 2024 · 3 comments
Closed

AWS Manual Power-Managed Catalog - Could Not Find Resource #48

amshaffer opened this issue Mar 22, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@amshaffer
Copy link

amshaffer commented Mar 22, 2024

Trying to create an AWS-hosted power-managed catalog is resulting in an error "Failed to resolve machines, error: could not find resource"

resource "citrix_machine_catalog" "aws-catalog" {
	name                		= "Test-MachineCatalog"
	description					= "Test-MachineCatalog"
	zone						= citrix_zone.zone.id
	allocation_type				= "Random"
	session_support				= "MultiSession"
	is_power_managed			= true
	is_remote_pc 			  	= false
	provisioning_type 			= "Manual"
	machine_accounts = [
        {
            hypervisor = citrix_aws_hypervisor.aws-hypervisor.id
            
            machines = [
                {
                    machine_account = "DOMAIN\\VDA-NAME"
                    machine_name = "i-0a22c640f58fc0fdc"
                    availability_zone = "us-west-2a"
                }
            ]
        }
    ]
}
citrix_machine_catalog.aws-catalog: Creating...
╷
│ Error: Error creating Machine Catalog
│
│   with citrix_machine_catalog.aws-catalog,
│   on machine_catalogs.tf line 1, in resource "citrix_machine_catalog" "aws-catalog":
│    1: resource "citrix_machine_catalog" "aws-catalog" {
│
│ Failed to resolve machines, error: could not find resource

I'm using the AWS instance ID for the machine name, and have confirmed that EC2 instance is in the listed availability zone. Does the AWS machine_name need to be formatted differently than just the instance ID?

@xushengl xushengl added the bug Something isn't working label Mar 22, 2024
@xushengl
Copy link

Hi @amshaffer

Thank you for reporting this issue. We will work on fixing this issue.

Xusheng "Fred" Liu

@amshaffer
Copy link
Author

amshaffer commented Mar 24, 2024

Tested this out in v0.5.3 and looks to be working as expected. Thanks for the quick fix @xushengl ! When will the publish to the public tf registry happen?

@aneeshk-citrix
Copy link
Collaborator

Hi @amshaffer,

The registry has been updated!

Thanks,
Aneesh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants