-
Notifications
You must be signed in to change notification settings - Fork 455
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
Issue with @cdktf/provider-postgresql Grant (Add terraform-parallelism flag) #1715
Comments
You could try setting an environment variable as described here. |
This PR added a |
Thanks @jsteinich that worked for me. For anyone referencing this do:
@ansgarm having a direct flag like that would definitely be nice though |
#734 is asking for the same flag. |
cdktf command, Don't take effect |
Hi @jaty613, |
env: terraform apply --auto-approve (parallelism parameters to take effect) cdktf deploy (Don't take effect) |
Hi @jaty613, where do you set those environment variables? Are you using an IDE, a terminal (which one?) or something else? |
In the Windows operating system, set the environment variables as system environment variables and ensure that the environment variables take effect。 |
@jaty613 |
|
What does running |
C:\Users\root>echo %TF_CLI_ARGS_apply% |
The actual maximum number of parallelism runs is the default value of 10 |
You mentioned Powershell. Is it correctly returning the |
PS C:\Users\root> $env:TF_CLI_ARGS_apply One stack has 200 resources |
The terraform apply command parallelizes the maximum number of resources, but the CDKTF deploy command does not |
Could you try setting the |
I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you've found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Community Note
cdktf & Language Versions
"@cdktf/provider-aws": "^7.0.13"
"@cdktf/provider-postgresql": "^0.4.12"
"@cdktf/provider-random": "^0.2.12"
"cdktf": "^0.10"
"ts-node": "^10.7.0",
"typescript": "^4.6.2"
Affected Resource(s)
PostgresqlProvider Grant Resource
Debug Output
Error: could not execute revoke query: pq: tuple concurrently updated
Expected Behavior
Successfully created each role grant for each role.
Actual Behavior
Concurrency error in spite of trying both the
--parallelism=0
and--parallelism=1
flagsSteps to Reproduce
Important Factoids
I've done some research and tried the concurrency flag which doesn't seem to be fixing anything. My assumption is that either something is wrong with the flag implementation in CDKTF or the Grant object itself.
The text was updated successfully, but these errors were encountered: