-
Notifications
You must be signed in to change notification settings - Fork 145
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
Provider-AWS does not support GovCloud Partition IDs #820
Comments
Just another update. For the provider config, I even tried setting my "host: " to: sns.us-gov-east-1.amazonaws.com, and still getting the error:
|
It maybe related to SNS alone. Can I get some help with triage please. |
The issue seems to be in the way the provider constructs the external name for certain resources, including sns topics, by building the ARN through string concatenation, at a point in the code where the partition is not currently available at runtime (only the region). Searching for I'm not sure how best to solve this, but I think it explains why the provider seems to work for some resources but not others. |
I have opened the similar bug, but related to china region (which uses aws-cn partition): |
This provider repo does not have enough maintainers to address every issue. Since there has been no activity in the last 90 days it is now marked as |
This provider repo does not have enough maintainers to address every issue. Since there has been no activity in the last 90 days it is now marked as |
/fresh |
Is there any plan to improve govcloud support within the official provider? Seems silly that the community provider has better govcloud support than the officially supported provider. As of right now, I have to mix and match providers in order to achieve what I need (like the SNS example above). |
@madisonb Do you have access to AWS GovCloud? Would you be willing to provide a PR to add support for it in the provider? |
I cross the similar issue to create Policy using provider IAM. I set the region as cn-northwest-1, also I create providerConfig to set the partition to aws-cn
but the partition still is aws, not aws-cn. |
What happened?
I have multiple AWS accounts, some in the regular
Commercial
regions, and some in theGov Cloud
regions. All of my composite resources create as expected in theCommercial
regions. As for the ones in theGov Cloud
regions, I am seeing issues where certain AWS resources aren't able to create due to improper partition ids. In this example, I am attempting to create a SNS topic which will alert for relative issues. I am providing my provider and controller configs below.How can we reproduce it?
Original provider configuration (before any attempts to troubleshoot):
An updated provider configuration (after trying to troubleshoot):
Here is my current ControllerConfig. Notice: I added the env variables for AWS_REGION and AWS_DEFAULT_REGION as recommend by other related issues.
When I run the controller with DEBUG enabled, I see the follow error during SNS topic creation in Gov Cloud:
So from the logs above, it's clear that the provider is trying to use an unsupported ARN in Gov Cloud due to the incorrect partition id. I'd like to know if there is a way to configure that partition id or is this something the developers need to change to properly support Gov Cloud?
Thanks.
What environment did it happen in?
Environment: AWS GovCloud
US-GOV-EAST-1
Crossplane version:
1.13.1
Provider version:
v0.37.0
The text was updated successfully, but these errors were encountered: