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

fix: sns topic creation fails in non-standard partitions #3932

Merged
merged 1 commit into from
May 14, 2024

Conversation

corymhall
Copy link
Contributor

Set the AWS partition dynamically instead of hardcoding the default aws partition.

I'm not sure there is a good way to test this since we do not have credentials for other partitions

fixes #3926

Set the AWS partition dynamically instead of hardcoding the default `aws` partition.

I'm not sure there is a good way to test this since we do not have
credentials for other partitions

fixes #3926
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

Maintainer note: consult the runbook for dealing with any breaking changes.

@corymhall corymhall requested review from t0yv0 and flostadler May 13, 2024 19:38
@farvour
Copy link

farvour commented May 13, 2024

I'm not sure there is a good way to test this since we do not have credentials for other partitions

Yeah they are specialty partitions. We plan to use this as soon as it merges. Hoping to avoid having to compile Pulumi from source to test this if that's what you're waiting on. Generally speaking, if you're using the aws.Client provider's Partition attribute, and it's working for you and returning 'aws', then it'll likely properly return 'aws-us-gov' or 'aws-cn' in the others.

https://docs.aws.amazon.com/IAM/latest/UserGuide/reference-arns.html

@corymhall corymhall self-assigned this May 14, 2024
Copy link
Contributor

@flostadler flostadler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@corymhall corymhall merged commit e354011 into master May 14, 2024
24 checks passed
@corymhall corymhall deleted the corymhall/fix-sns-arn branch May 14, 2024 14:01
@t0yv0
Copy link
Member

t0yv0 commented May 14, 2024

Thank you!

lumiere-bot bot referenced this pull request in coolguy1771/home-ops May 19, 2024
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [@pulumi/aws](https://pulumi.io)
([source](https://togithub.com/pulumi/pulumi-aws)) | dependencies |
minor | [`6.35.0` ->
`6.36.0`](https://renovatebot.com/diffs/npm/@pulumi%2faws/6.35.0/6.36.0)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>pulumi/pulumi-aws (@&#8203;pulumi/aws)</summary>

###
[`v6.36.0`](https://togithub.com/pulumi/pulumi-aws/releases/tag/v6.36.0)

[Compare
Source](https://togithub.com/pulumi/pulumi-aws/compare/v6.35.0...v6.36.0)

##### What's Changed

- upstream v5.49.0 by
[@&#8203;flostadler](https://togithub.com/flostadler) in
[https://github.com/pulumi/pulumi-aws/pull/3936](https://togithub.com/pulumi/pulumi-aws/pull/3936)
- fix: sns topic creation fails in non-standard partitions by
[@&#8203;corymhall](https://togithub.com/corymhall) in
[https://github.com/pulumi/pulumi-aws/pull/3932](https://togithub.com/pulumi/pulumi-aws/pull/3932)
- fix: wafv2 permanent diff issues
([#&#8203;3880](https://togithub.com/pulumi/pulumi-aws/issues/3880)
[#&#8203;3306](https://togithub.com/pulumi/pulumi-aws/issues/3306)
[#&#8203;3190](https://togithub.com/pulumi/pulumi-aws/issues/3190)
[#&#8203;3454](https://togithub.com/pulumi/pulumi-aws/issues/3454))
- Enroll aws_wafv2\_rule_group in PlanResourceChange by
[@&#8203;flostadler](https://togithub.com/flostadler) in
[https://github.com/pulumi/pulumi-aws/pull/3948](https://togithub.com/pulumi/pulumi-aws/pull/3948)
- Upgrade pulumi-terraform-bridge to v3.82.0 by
[@&#8203;flostadler](https://togithub.com/flostadler) in
[https://github.com/pulumi/pulumi-aws/pull/3929](https://togithub.com/pulumi/pulumi-aws/pull/3929)
- Dependencies: terraform converter v1.0.17 by
[@&#8203;t0yv0](https://togithub.com/t0yv0) in
[https://github.com/pulumi/pulumi-aws/pull/3923](https://togithub.com/pulumi/pulumi-aws/pull/3923)

**Full Changelog**:
pulumi/pulumi-aws@v6.35.0...v6.36.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNjMuOSIsInVwZGF0ZWRJblZlciI6IjM3LjM2My45IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJ0eXBlL21pbm9yIl19-->

Co-authored-by: lumiere-bot[bot] <98047013+lumiere-bot[bot]@users.noreply.github.com>
lumiere-bot bot referenced this pull request in coolguy1771/home-ops May 19, 2024
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [@pulumi/aws](https://pulumi.io)
([source](https://togithub.com/pulumi/pulumi-aws)) | dependencies |
minor | [`6.35.0` ->
`6.36.0`](https://renovatebot.com/diffs/npm/@pulumi%2faws/6.35.0/6.36.0)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>pulumi/pulumi-aws (@&#8203;pulumi/aws)</summary>

###
[`v6.36.0`](https://togithub.com/pulumi/pulumi-aws/releases/tag/v6.36.0)

[Compare
Source](https://togithub.com/pulumi/pulumi-aws/compare/v6.35.0...v6.36.0)

##### What's Changed

- upstream v5.49.0 by
[@&#8203;flostadler](https://togithub.com/flostadler) in
[https://github.com/pulumi/pulumi-aws/pull/3936](https://togithub.com/pulumi/pulumi-aws/pull/3936)
- fix: sns topic creation fails in non-standard partitions by
[@&#8203;corymhall](https://togithub.com/corymhall) in
[https://github.com/pulumi/pulumi-aws/pull/3932](https://togithub.com/pulumi/pulumi-aws/pull/3932)
- fix: wafv2 permanent diff issues
([#&#8203;3880](https://togithub.com/pulumi/pulumi-aws/issues/3880)
[#&#8203;3306](https://togithub.com/pulumi/pulumi-aws/issues/3306)
[#&#8203;3190](https://togithub.com/pulumi/pulumi-aws/issues/3190)
[#&#8203;3454](https://togithub.com/pulumi/pulumi-aws/issues/3454))
- Enroll aws_wafv2\_rule_group in PlanResourceChange by
[@&#8203;flostadler](https://togithub.com/flostadler) in
[https://github.com/pulumi/pulumi-aws/pull/3948](https://togithub.com/pulumi/pulumi-aws/pull/3948)
- Upgrade pulumi-terraform-bridge to v3.82.0 by
[@&#8203;flostadler](https://togithub.com/flostadler) in
[https://github.com/pulumi/pulumi-aws/pull/3929](https://togithub.com/pulumi/pulumi-aws/pull/3929)
- Dependencies: terraform converter v1.0.17 by
[@&#8203;t0yv0](https://togithub.com/t0yv0) in
[https://github.com/pulumi/pulumi-aws/pull/3923](https://togithub.com/pulumi/pulumi-aws/pull/3923)

**Full Changelog**:
pulumi/pulumi-aws@v6.35.0...v6.36.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNjMuOSIsInVwZGF0ZWRJblZlciI6IjM3LjM2My45IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJ0eXBlL21pbm9yIl19-->

Co-authored-by: lumiere-bot[bot] <98047013+lumiere-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improper partition used when generating SNS Topic ARN
4 participants