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

Pulumi errors with AWS's required format for Elasticache cluster version #1459

Closed
followben opened this issue Apr 22, 2021 · 3 comments
Closed
Assignees
Labels
awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed
Milestone

Comments

@followben
Copy link

I tried to create an Redis cluster like so:

cluster = aws.elasticache.Cluster(
            name,
            engine="redis",
            engine_version="6.0.5",
            node_type="cache.m4.large",
            num_cache_nodes=1,
            port=6379,
            subnet_group_name=subnetGroup.name,
            security_group_ids=[self.securityGroup.id],
        )

Which threw the following error:

aws:elasticache:Cluster (apinfra):
    error: 1 error occurred:
    	* error creating ElastiCache Cache Cluster: InvalidParameterValue: Specific version selection is not allowed for '6.0.5', please use '6.x'
    	status code: 400, request id: 1068124d-ae27-474c-8a90-eda86ecf29a7

After updating the engine_version to "6.x", the cluster created successfully. However thereafter pulumi up fails with the following:

% pulumi up                                                                                    
Previewing update (saberastro/dev)

View Live: https://app.pulumi.com/org/project/dev/previews/821241f1-12ea-w0f0-9fdc-712b8d7aa9e8

     Type                        Name         Plan     Info
     pulumi:pulumi:Stack         project-dev           
     └─ aws:elasticache:Cluster  apinfra               1 error
 
Diagnostics:
  aws:elasticache:Cluster (project):
    error: diffing urn:pulumi:dev::apinfra::aws:elasticache/cluster:Cluster::project: Malformed version: 6.x

Expected behavior

Pulumi should handle wildcard versions as requested by AWS.

Current behavior

Pulumi throws a Malformed version error when trying to compare the stack.

Steps to reproduce

See above.

Context (Environment)

We are currently unable to maintain or update our project's infra with Redis.

Affected feature

aws.elasticache.Cluster

@followben followben added the kind/bug Some behavior is incorrect or out of spec label Apr 22, 2021
@followben
Copy link
Author

Appears this could be related to the terraform provider: hashicorp/terraform-provider-aws#18920

@komalali komalali added awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). and removed kind/bug Some behavior is incorrect or out of spec labels Apr 27, 2021
@komalali komalali added the kind/bug Some behavior is incorrect or out of spec label Apr 27, 2021
@stack72
Copy link
Contributor

stack72 commented May 7, 2021

Hi @followben

I believe this has been solved by pulumi-aws 4.2.0

have you been able to upgrade to use this?

Paul

@stack72 stack72 added this to the 0.56 milestone May 7, 2021
@stack72
Copy link
Contributor

stack72 commented May 12, 2021

Hi @followben

I am going to close this out as we have ingested the upstream bug fix - please let me know if this is still an issue and I can investigate further

Thanks

Paul

@stack72 stack72 added the resolution/fixed This issue was fixed label May 12, 2021
@stack72 stack72 closed this as completed May 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed
Projects
None yet
Development

No branches or pull requests

3 participants