Closed npmoyer closed 3 years ago
I am also getting this issue. @NPMoyer Were you able to resolve this?
I'm experiencing this, as well. Link to the build, if it's helpful: https://github.com/datamade/la-metro-councilmatic/runs/1501527170
Has there been a successful deployment before, or was this the very first deployment attempt?
If there was a previous deployment, could you obtain the deployment description (probably the API method is called GetDeployment?) with the AWS CLI?
Hi, @mpdude – Yes, we've had successful deployments with your action, which is great, by the way – thank you! The description of the last successful deployment with the action prior to the error is Created by webfactory/create-aws-codedeploy-deployment (run_number=11)
. Here is the corresponding build: https://github.com/datamade/la-metro-councilmatic/runs/1500953012.
Interestingly, deployments via action are working again as of this morning.
I'm not sure what would be useful for debugging, but my workflow when I encountered the error was:
appspec.yml
appspec.yml
TypeError
https://github.com/datamade/la-metro-councilmatic/runs/1501527170Let me know if there's any more information I can provide to help out!
Bummer, this seems to be happening pretty consistently now. Latest failure to deploy: https://github.com/datamade/la-metro-councilmatic/runs/1538459890
Ah, ~@NPMoyer~ @mpdude, I bet this is the issue you resolved in https://github.com/webfactory/create-aws-codedeploy-deployment/commit/0d7a684950dae16883a140dd950257958730e0b5! Looks like that commit is not in your latest release: https://github.com/webfactory/create-aws-codedeploy-deployment/releases/tag/v0.2.1. Do you have plans to cut a new release with the fix, perchance?
(Sorry for the mix up in tagging. TGIF, eh? 🙃)
Hope I will be able to do so on Monday. Until then, you could try to reference the commit ID instead of the Tag reference when using the action.
Does it work consistently then?
@mpdude Thanks for the tip! Didn't realize you could pin an action to a commit – done in https://github.com/datamade/la-metro-councilmatic/pull/684. So far, so good on deployments. Will update this thread if this error recurs (or open a separate issue if we see a new one).
@hancush In fact, when you're ~a bit paranoid~ more security conscious, it would be a good practice to always review the code shipped by an action and then pin it by commit. Otherwise, action authors might... well... change things/move tags (if only for a short time) and you might run things on your workflows that you are not aware of. Just sayin'...
@NPMoyer I've tagged v0.2.2, hoping that it will resolve your issue.
If it does, could you please close this issue here?
Thank you all for your patience and helping to resolve this!
Hey @mpdude it seems it was tagged as "0.2.2" and not "v0.2.2" since I am getting this error:
Failed to resolve action download info. Error: Unable to resolve action webfactory/create-aws-codedeploy-deployment@v0.2.2
, unable to find version v0.2.2
It did fix the issue though!
@NPMoyer fixed the release tag (added the correct v0.2.2
, but kept the wrong 0.2.2
to avoid breakages).
I am encountering this error when running the workflow action. I'm able to manually create a deployment in AWS but not from the action as I get the following error when running the workflow. I'm not sure what I'm missing here so any help would be appreciated.
My appspec.yml:
My release-aws.yml: