Open skorfmann opened 9 months ago
it's executed in the planning stage, not after all resources were applied
this could be fixed by using a null resource / terraform data which triggers on each run. However, it would still run at any time the resource dependencies would be fulfilled. It's still not straightforward to run this at the very end of the apply run.
For this being usable as a smoke test concept, it could be invoked via the wing cli similar to tests.
well, thinking about this again maybe the better way would be to use cloudwatch alarams to monitor for the check functions response codes. Then in a separate step wait for a a few minutes and then check the status of cloudwatch alarms.
Also, perhaps a dedicated cloudwatch synthetics Check cloud be useful https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries.html
I am wondering if the issue is with cloud.OnDeploy
. @Chriscbr, thoughts?
Hi,
This issue hasn't seen activity in 60 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!
I tried this:
add a winglib check and use it with
tf-aws
for smoke testsThis happened:
only when a dependency of the check is changed, the check is executed at the right time in the
terraform apply
phaseDirect check dependency change
Unrelated resources changed
it's executed in the planning stage, not after all resources were applied
I expected this:
can use checks as a smoke test
Is there a workaround?
create manual dependencies, but that's really awkward.
Anything else?
No response
Wing Version
0.51.21
Node.js Version
18.7
Platform(s)
MacOS
Community Notes