Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Fullmer Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
How to Use Spacelift
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
[[File:Spacelift-howto-hero.jpeg|thumb|center|500px|Config in, plan reviewed, confirmed, applied.]] A simple walkthrough of how infrastructure actually gets deployed with Spacelift β the same process used to build the [[Spacelift|labs documented here]]. Written for anyone who already knows what Infrastructure as Code is and wants to see how Spacelift specifically fits into that workflow. Seven steps, no step skipped, nothing applied without a human saying so. == Step 1: Write your infrastructure as code == Describe what you want β a server, a network, a database β as config files (OpenTofu or Terraform) in a Git repository. This is the "shopping list," not the click-through-a-console approach. It's also the part that makes every future change reviewable, since it's just a diff in a file. == Step 2: Create a Spacelift stack == Point Spacelift at that repository and branch. A "stack" is Spacelift's unit of infrastructure β one stack usually maps to one deployable piece of your system (a network, an app, a database tier). == Step 3: Attach cloud credentials, scoped on purpose == Connect the stack to your cloud account. Worth doing deliberately here: automation/read-only access and actual deploy access don't have to be the same credential. Keeping them separate means a compromised or overly-curious tool can look, but can't touch. == Step 4: Push a change == Commit and push. Spacelift picks it up automatically and runs a '''plan''' β a full preview of exactly what would change, added, or destroyed. Nothing has touched the real infrastructure yet. == Step 5: Read the plan like it matters == [[File:Spacelift-howto-confirm.jpeg|thumb|right|280px|The gate that keeps a bad plan from ever reaching production.]] This is the step people skip when they're in a hurry, and the step that saves you when you are. The plan shows every resource being created, changed, or destroyed β read it the way you'd read a contract before signing it. == Step 6: Confirm == Only after a human clicks confirm does Spacelift actually apply anything to the real account. This is the whole point: plan and apply are two separate, deliberate actions, not one button that does both. It's the difference between "this happened" and "I meant for this to happen." == Step 7: Check the run history any time == Every run β who triggered it, what changed, whether it was confirmed or rejected β stays in Spacelift's history. Weeks later, "why did this change" has an actual answer instead of a guess. == Why it's worth the extra step == None of this is exotic. It's the boring, unglamorous discipline that turns "I hope this doesn't break something" into an actual guarantee β whether the thing pushing the change is a person or, as in [[MAC|this case]], an AI agent working with real credentials. The gate is the same either way, and that's exactly the point. [[Category:Infrastructure as Code]] [[Category:AWS]] [[Category:Technical Account Manager]]
Summary:
Please note that all contributions to Fullmer Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Fullmer Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
How to Use Spacelift
Add topic