-
Notifications
You must be signed in to change notification settings - Fork 824
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
Can't use envName
in override.ts
for API category
#12966
Comments
I need to use |
override.ts
for API categoryenvName
in override.ts
for API category
As a workaround, I got the |
Hey @redjonzaci 👋 thanks for raising this! What was the original issue when attempting to use this property? You should also be able to use the |
@josefaidt I wanted to override the OpenSearch domain name to be a specific string + envName, like Lambda function names are for example. As for the env parameter, it gave me an error when trying to access it like |
Hey @redjonzaci thanks for clarifying and that sounds good! For what it's worth when you need to reference a CFN stack parameter you will also need to write the CFN block rather than CDK. This is largely different by the property names where CDK is camelCase and CFN is PascalCase. Given the workaround I will mark this as resolved, but if you encounter this again please do not hesitate to reach back out by filing a bug report! |
|
I paid a little more attention to this comment and I saw that I was trying to use
amplifyProjectInfo
in an API'soverride.ts
.Is there any workaround for the API category? Because I can't merge my changes otherwise.
Originally posted by @redjonzaci in #9063 (comment)
The text was updated successfully, but these errors were encountered: