You may have seen this news already, but it's still worth sharing in my opinion.
Terraform adds a new language concept called "actions". It's interesting, because while HCL evolved through time, basic concepts such as resources, data sources, variables, and locals remained the same.
In nutshell, Actions are basically provider-approved local-execs: provider developers can add specific imperative tasks, such as invoking an AWS Lambda, that you can later attach to your resource's lifecycle.
The concept is not new, you were likely already doing this with provisioners, local and remote execs, and other hacks. Now, it's just more universal and straightforward.
The only thing is that actions are up to provider developers to implement, so do not expect many of them available from the get-go.
#terraform #hashicorp
Post #2774
1.55K
- 👀 9
- ❤ 1
- 👍 1