S3 Provider Environment Deployment
Scenario: I have a Project which creates (static, web site) artifacts. I also have a separate Environment for performing an S3 deployment. The deploy is only run manually (it's not part of the Project's build). Everything works and content is deployed but I'm trying to determine how to delete existing content from the S3 bucket.
When the 'Amazon S3' provider is used in the deployment step of a Project there are before and after deployment scripts available. This allows for AWS CLI scripts to be run (allowing, in my case, the deletion of S3 content). How do I achieve the same thing when the 'Amazon S3' provider is used in an Environment?
Thanks
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Ilya Finkelshte... on 05 Apr, 2018 02:36 AM
There are 2 options right now you can look at:
2 Posted by joelb on 05 Apr, 2018 09:15 PM
Ah - deployment projects did the trick.
I was having trouble getting the S3 provider to find the downloaded artifacts so I ended-up doing the following:
1) 'Build' runs the download (iex...) script (as per link you provided)
2) 'Artifacts' identifies the artifact(s) that were downloaded
3) 'Deployment' specifies the artifact(s) from step2) and runs my 'Before deployment' script.
Thanks for setting me on the right path!
3 Posted by Ilya Finkelshte... on 05 Apr, 2018 09:27 PM
Great! We plan to make deployment projects first class citizens soon, so people do not struggle this way. Sorry we did not do that yet before you tried it :)
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:28 AM.