careful-balloon-42392
10/03/2025, 8:52 PMmy-s3-bucket that is created by pulumi and correctly managed in the stack state. this should map to a bucket at <https://my-s3-bucket.s3.us-west-2.amazonaws.com>. I ran refresh, and for whatever reason I had a random dns resolution failure during the refresh. this resulted in a "no such host" error, but the refresh still appears to have updated my state file. re-running pulumi up then gives me an error that it can't create the bucket because it already exists.
is it deciding that the bucket doesn't exist because it can't resolve dns? note that i am using the (Python) automation api to do both refresh and up. Is there any way I can properly fail the refresh when dns doesn't resolve for that bucket? I'll add the error message in a 🧵careful-balloon-42392
10/03/2025, 8:52 PMDiagnostics:
  aws:s3:BucketServerSideEncryptionConfiguration (my-s3-bucket-encryption-3):
    error:   sdk-v2/provider2.go:572: sdk.helper_schema: reading S3 Bucket Server-side Encryption Configuration (my-s3-bucket): operation error S3: GetBucketEncryption, https response error StatusCode: 0, RequestID: , HostID: , request send failed, Get "<https://my-s3-bucket.s3.us-west-2.amazonaws.com/?encryption=>": dial tcp: lookup <http://my-s3-bucket.s3.us-west-2.amazonaws.com|my-s3-bucket.s3.us-west-2.amazonaws.com>: no such host: provider=aws@7.7.0
    error: refreshing urn:pulumi:mystack::myworkspace::foo:stacks:MyStack$foo:storage:S3BucketSet$aws:s3/bucketServerSideEncryptionConfiguration:BucketServerSideEncryptionConfiguration::my-s3-bucket-encryption-3: 1 error occurred:
        * reading S3 Bucket Server-side Encryption Configuration (my-s3-bucket): operation error S3: GetBucketEncryption, https response error StatusCode: 0, RequestID: , HostID: , request send failed, Get "<http://my-s3-bucket.s3.us-west-2.amazonaws.com/?encryption=|my-s3-bucket.s3.us-west-2.amazonaws.com/?encryption=>": dial tcp: lookup <http://my-s3-bucket.s3.us-west-2.amazonaws.com|my-s3-bucket.s3.us-west-2.amazonaws.com>: no such hostcareful-balloon-42392
10/03/2025, 8:53 PMcareful-balloon-42392
10/03/2025, 8:57 PM<https://my-s3-bucket.s3.us-west-2.amazonaws.com> at my firewall
• run refresh - see an error about "no such host"
• re-enable dns
• run pulumi up
• pulumi tries to create the bucket againcareful-balloon-42392
10/03/2025, 9:00 PMcareful-balloon-42392
10/03/2025, 9:02 PMmodern-zebra-45309
10/04/2025, 9:55 AMlittle-cartoon-10569
10/05/2025, 7:46 PM--refresh flag with pulumi up, so that it re-finds the lost resources?careful-balloon-42392
10/06/2025, 5:42 AMmodern-zebra-45309
10/06/2025, 9:43 AMpulumi import. Maybe a refresh with --run-program is an additional option, but I haven't tried it yet in this scenario.careful-balloon-42392
10/06/2025, 6:20 PMlittle-cartoon-10569
10/06/2025, 7:02 PMcareful-balloon-42392
10/06/2025, 7:04 PM