Hi everyone, I'm playing with the RAM resource sha...
# aws
b
Hi everyone, I'm playing with the RAM resource share, but I'. struggling with deleting the stack: this is what I'm getting from the
pulumi down
command:
Copy code
Destroying (dev)

View in Browser (Ctrl+O): <https://app.pulumi.com/xxxxxxxxxxxxxxxxxxx/network/dev/updates/42>

     Type                            Name            Status                  Info
     pulumi:pulumi:Stack             network-dev     **failed**              1 error
 -   ├─ aws:ram:ResourceAssociation  shared-assoc-1  **deleting failed**     1 error
 -   └─ aws:ram:ResourceAssociation  shared-assoc-0  **deleting failed**     1 error

Diagnostics:
  pulumi:pulumi:Stack (network-dev):
    error: update failed

  aws:ram:ResourceAssociation (shared-assoc-0):
    error: deleting urn:pulumi:dev::network::xxx:net:FullVpcShare$aws:ram/resourceAssociation:ResourceAssociation::shared-assoc-0: 1 error occurred:
        * deleting RAM Resource Association (arn:aws:ram:us-east-1:000000000000:resource-share/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx,arn:aws:ec2:us-east-1:000000000000:subnet/subnet-00000000000000000): MalformedArnException: The specified resource share ARN is not valid. Verify the ARN and try again.

  aws:ram:ResourceAssociation (shared-assoc-1):
    error: deleting urn:pulumi:dev::network::xxx:net:FullVpcShare$aws:ram/resourceAssociation:ResourceAssociation::shared-assoc-1: 1 error occurred:
        * deleting RAM Resource Association (arn:aws:ram:us-east-1:000000000000:resource-share/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx,arn:aws:ec2:us-east-1:000000000000:subnet/subnet-00000000000000000): MalformedArnException: The specified resource share ARN is not valid. Verify the ARN and try again.

Resources:

Duration: 4s
I can see all resources are there with the correct ARNs...
fyi:
Copy code
$ pulumi version
v3.114.0
the same error is emitted when I try
pulumi refresh
too, which worries me a bit, as I was about to delete the shares manually from the console...
looking through the stack output and I see this:
Copy code
$ pulumi stack export | jq '.deployment.resources[] | select(.urn | contains("shared-assoc-0")) | .outputs' 
{
  "id": "arn:aws:ram:us-east-1:000000000000:resource-share/xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxxxxxxx,arn:aws:ec2:us-east-1:
000000000000:subnet/subnet-xxxxxxxxxxxxxxxxx",
  "resourceArn": "arn:aws:ec2:us-east-1:000000000000:subnet/subnet-xxxxxxxxxxxxxxxxx",
  "resourceShareArn": "arn:aws:ram:us-east-1:000000000000:resource-share/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
(Note: the
jq
espression is simply selecting the
shared-assoc-0
resource, one of the two failing resources)
Does anyone has an idea how to fix the above 👆 ? It’s a bit of a blocker… Or, alternatively, is there a way I can delete the stack manually by deleting the aws resources? Synchronizing the resources seems to lead to the same error which is a bit worrying…