Skip to content

Role.Get throws resource does not exist when trying to get existed role #798

@duclan2703

Description

@duclan2703

Describe what happened

Recently in our project, when we try to create a read-only user from an existed role this error keeps coming up.

Image

I'll leave a sample code to reproduces the issue below

Sample program

Avayler.IaC.SampleReadOnlyRds.zip

Log output

No response

Affected Resource(s)

No response

Output of pulumi about

CLI
Version 3.181.0
Go Version go1.24.4
Go Compiler gc

Plugins
KIND NAME VERSION
resource aws 6.32.0
resource aws-native 0.103.0
resource command 4.5.0
resource datadog 4.28.0
resource docker 4.5.4
resource docker-build 0.0.2
language dotnet unknown
resource postgresql 3.11.0
resource random 4.16.1

Host
OS Microsoft Windows 11 Pro
Version 10.0.26100 Build 26100
Arch x86_64

Dependencies:
NAME VERSION
Contrib.Grpc.Core.M1 2.41.0
Microsoft.Extensions.Configuration.Binder 7.0.4
Microsoft.Extensions.Configuration.EnvironmentVariables 7.0.0
Microsoft.Extensions.Configuration.Json 9.0.5
Microsoft.Extensions.DependencyInjection 7.0.0
Microsoft.SourceLink.AzureRepos.Git 8.0.0
Moq 4.18.4
Newtonsoft.Json 13.0.3
Pulumi 3.63.1
Pulumi.Aws 6.32.0
Pulumi.Command 4.5.0
Pulumi.Docker 4.5.4
Pulumi.DockerBuild 0.0.2
Pulumi.PostgreSql 3.11.0
Pulumi.Random 4.16.1
AutoFixture 4.17.0
coverlet.collector 3.1.2
FluentAssertions 6.8.0
Microsoft.NET.Test.Sdk 17.1.0
System.Net.Http 4.3.4
System.Text.RegularExpressions 4.3.1
xunit 2.4.1
xunit.runner.visualstudio 2.4.3
Pulumi.AwsNative 0.103.0
Avayler.Configuration 0.7.0
Pulumi.Datadog 4.28.0
Amazon.Lambda.Core 2.6.0
Amazon.Lambda.Serialization.SystemTextJson 2.4.4
AWSSDK.EC2 3.7.107.1
AWSSDK.Lambda 3.7.107
AWSSDK.SecretsManager 3.7.102.61
AWSSDK.SimpleSystemsManagement 3.7.104.50

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting-feedbackBlocked on input from the authorkind/bugSome behavior is incorrect or out of spec

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions