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

ENG-43804: updating provider for supporting multiple accounts config #3

Merged
merged 4 commits into from
May 7, 2024

Conversation

varkey98
Copy link
Contributor

@varkey98 varkey98 commented May 6, 2024

No description provided.

github.com/hashicorp/terraform-plugin-docs v0.14.1
github.com/hashicorp/terraform-plugin-sdk/v2 v2.17.0
github.com/stretchr/testify v1.7.0
github.com/aws/aws-sdk-go-v2 v1.26.1
Copy link
Contributor Author

Choose a reason for hiding this comment

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

bumped every dependency to latest version, github is flagging vulnerabilities on the current main: https://github.com/Traceableai/terraform-provider-awsapigateway/security/dependabot

conn := meta.(AwsApiGatewayProvider)

for _, account := range accounts {
acc := account.(map[string]interface{})

Choose a reason for hiding this comment

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

There's no chance that these type casts would error, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, if there's a type mismatch, then terraform will throw an error before calling into the provider as its strictly typed there

@varkey98 varkey98 merged commit e5d40b3 into main May 7, 2024
10 checks passed
@varkey98 varkey98 deleted the multiple-acc-support branch May 7, 2024 06:39
api_list = ["api1", "api2"]
cross_account_role_arn = ""
exclude = false
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

can add another one for include

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure, sorry, just merged the pr :|

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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.

4 participants