#spacelift - February 2022

spaceliftArchived
42 messages
February 2022
erik
erikalmost 5 years ago
@Erik Osterman (Cloud Posse) has joined the channel
Omry Hay
Omry Hayalmost 5 years ago
@Omry Hay has joined the channel
kevcube
kevcubealmost 5 years ago
@kevcube has joined the channel
Paweł Hytry - Spacelift
Paweł Hytry - Spaceliftalmost 5 years ago
@Paweł Hytry - Spacelift has joined the channel
marcinw
marcinwalmost 5 years ago
@marcinw has joined the channel
Michael Perez
Michael Perezalmost 5 years ago
@Michael Perez has joined the channel
Taylor
Tayloralmost 5 years ago
@Taylor has joined the channel
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)almost 5 years ago
@Andriy Knysh (Cloud Posse) has joined the channel
Imran Hussain
Imran Hussainalmost 5 years ago
@Imran Hussain has joined the channel
RB (pat leave again)
RB (pat leave again)almost 5 years ago
@RB (pat leave again) has joined the channel
Andy Miguel
Andy Miguelalmost 5 years ago
@Andy Miguel has joined the channel
Steven Hopkins
Steven Hopkinsalmost 5 years ago
@Steven Hopkins has joined the channel
Dan Meyers
Dan Meyersalmost 5 years ago
@Dan Meyers has joined the channel
johncblandii
johncblandiialmost 5 years ago
@johncblandii has joined the channel
Yonatan Koren
Yonatan Korenalmost 5 years ago
@Yonatan Koren has joined the channel
Hugo Samayoa
Hugo Samayoaalmost 5 years ago
@Hugo Samayoa has joined the channel
Leo Przybylski
Leo Przybylskialmost 5 years ago
@Leo Przybylski has joined the channel
Lucky
Luckyalmost 5 years ago
@Lucky has joined the channel
Maxim Mironenko (Cloud Posse)
Maxim Mironenko (Cloud Posse)almost 5 years ago
@Maxim Mironenko (Cloud Posse) has joined the channel
Ben Smith (Benbentwo)
Ben Smith (Benbentwo)almost 5 years ago
@Ben Smith (Benbentwo) has joined the channel
Jeremy G
Jeremy Galmost 5 years ago
@Jeremy G has joined the channel
Max Lobur
Max Loburalmost 5 years ago
@Max Lobur has joined the channel
Slackbot
Slackbotalmost 5 years ago
Spacelift has joined this channel by invitation from SweetOps.
Jean-Marc Fontaine
Jean-Marc Fontainealmost 5 years ago
@Jean-Marc Fontaine has joined the channel
Kuba Martin
Kuba Martinalmost 5 years ago
@Kuba Martin has joined the channel
Adam Connelly
Adam Connellyalmost 5 years ago
@Adam Connelly has joined the channel
Michał Goliński
Michał Golińskialmost 5 years ago
@Michał Goliński has joined the channel
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 5 years ago
tamsky
tamskyalmost 5 years ago
I'm curious what is meant by this text at the bottom of the Pulumi vendors page [1] :
Spacelift module CI/CD isn't currently available for Pulumi.

Is this referring to the terraform module dependency tracking/testing feature(s)?

[1] https://docs.spacelift.io/vendors/pulumi
Matt Gowie
Matt Gowiealmost 5 years ago
Hey folks — For the spacelift-automation module — Is there a way to set global spacelift settings for a Stack? As in, if I wanted to add labels to all components in a stack is there a way to do something along the lines of the following?

settings:
  spacelift:
    labels:
      - example 

components:
  terraform:
    example1:
      vars: {}

    example2:
      vars: {}

Where both of the above components will get the example label?
Jim Park
Jim Parkalmost 5 years ago
@Jim Park has joined the channel
Alex Jurkiewicz
Alex Jurkiewiczalmost 5 years ago(edited)
I wrote this nice pattern in our terraform-spacelift-stack module to allow creating Spacelift hooks in source repos. Maybe others will find it useful:
locals {
  base_hook_string = "if test -d .spacelift/hooks/%s ; then echo ; find .spacelift/hooks/%s -type f -executable -print | while
read -r hook ; do echo Running $hook ; $hook || exit $rc ; done ; fi"
}
resource "spacelift_stack" "this" {
  # ...
  before_init = [format(local.base_hook_string, "before_init", "before_init")]
  after_init  = [format(local.base_hook_string, "after_init", "after_init")]
  # etc
}

Then you can add hooks as executable files in your source repo to $project_root/.spacelift/after_apply/ 🙌
rss
rssalmost 5 years ago(edited)
Best Infrastructure as Code Tools (IaC) for DevOps
More and more Engineering organizations are moving towards Infrastructure as Code (IaC). See our article and find out the best IaC tools avaliable for your DevOps team.
Isaac
Isaacover 4 years ago
I had a terraform destroy spacelift task fail because it was trying to destroy a backup vault that still had recovery points in it. I manually deleted the recovery points and then attempted to run destroy again. Unfortunately, I'm getting the error :
│ Error: Can't ask approval for state migration when interactive input is disabled.
│ 
│ Please remove the "-input=false" option and try again.

Any ideas how to fix this?
Phil Hadviger
Phil Hadvigerover 4 years ago
Hi. I'm fairly new to Spacelift, trying it out as a replacement for TF Cloud for our business. I was wondering if anybody here has used stacks with AWS integration using public workers. The thing I'm trying to wrap my head around is how to go about doing a PR, that requires a terraform import as part of the release. Usually with TF Cloud, I had a backend configuration in my .tf files, and I would do a terraform import locally (with the remote state), then merge the PR. With Spacelift, how do you deal with PRs that would require an import as part of the release? There seems to be no documentation I can find around this process.
rss
rssover 4 years ago(edited)
Terraform Locals – How to Use Them (Examples)
Terraform local variables. Learn what are they and how to use Terraform locals. See examples.
rss
rssover 4 years ago(edited)
Terraform Count and For_Each Meta-Argument Overview
See how and when to use Terraform count and for_each. Learn things to keep in mind when working with these Terraform meta-arguments.
rss
rssover 4 years ago(edited)
Ansible Tutorial for Beginners: Installation, Playbook, Examples
What is Ansible? How does it work? See the Ansible tutorial for beginners with playbook and commands explained with examples.
Eric Berg
Eric Bergover 4 years ago
Can someone point me to the docs on importing existing Spacelift stacks into Terraform?
Eric Berg
Eric Bergover 4 years ago
Is there a way to see the config for each run? Specifically, I’m thinking about the environment, but full context for the run would be very nice.
Eric Berg
Eric Bergover 4 years ago
Is there a way to use Spacelift-managed state from outside Spacelift? I think not...
Eric Berg
Eric Bergover 4 years ago
Is there a difference between the TRIGGER button on the stack pages and the RETRY button on the run pages?

Say, for example, I changed the base_dir between runs. Is there a difference in what is triggered by those two buttons? Would RETRY possibly still use the base_dir from the run it’s retrying, instead of the newly-updated value? or any other settings…
No earlier messagesBrowse by dateMarch 2022