Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to target resources when running local-preview #268

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

tomasmik
Copy link
Contributor

This was suggested by people in the issue comments. I tested it and it works just fine. I've updated the resources:

--- a/main.tf
+++ b/main.tf
@@ -1,18 +1,18 @@
 resource "random_string" "random" {
-  length           = 12
+  length           = 112
   special          = true
   override_special = "/@£$"
 }

 resource "random_string" "random2" {
-  length           = 11
+  length           = 10
   special          = true
   override_special = "/@£$"
 }


 resource "random_string" "random3" {
-  length           = 13
+  length           = 19
   special          = true
   override_special = "/@£$"
 }

When calling spc stack local-preview -target="random_string.random,random_string.random2", my plan looks like this:

image

@tomasmik tomasmik self-assigned this Nov 12, 2024
@tomasmik tomasmik merged commit 4bb59fe into main Nov 12, 2024
9 checks passed
@tomasmik tomasmik deleted the allow-to-target-resources branch November 12, 2024 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants