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

[pull] main from hashicorp:main #126

Open
wants to merge 2,557 commits into
base: main
Choose a base branch
from
Open

[pull] main from hashicorp:main #126

wants to merge 2,557 commits into from

Conversation

pull[bot]
Copy link

@pull pull bot commented Apr 25, 2023

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

jbardin and others added 28 commits September 19, 2024 10:02
Complete the remaining provider implementations to satisfy the updated
internal interface as well as the new protobuf interfaces.
* add tests that highlight known issues in the destroy mechanism

* stacks: stacks destroy ordering should match Terraform
Add `Resource` to all the ephemeral protocol symbols to make them
consistent with existing naming conventions.
Add protobuf definitions for the ephemeral RPCs
Implement the core nodes for ephemeral resources. This constitutes
what's needed for execution, but does not yet include all the necessary
graph transformations.
There's still some duplicated code in here, we'll try and sort that out
in a later refactor. Ephemeral resources are not currently working with
deferrals.
TODOs:
 - deferrals (still)
 - The prune transformer needs to take care of ephemerals too in order
   to continue partial destroys
 - ValidateEphemeralResourceConfig is not yet called during validate
   walk.
Call ValidateEphemeralResourcConfig during validation walk.

Found that marks don't show up during validation, which may be an HCL
bug
…me-role

backend/s3: Remove deprecated assume role attributes
jbardin and others added 30 commits October 29, 2024 12:35
Co-authored-by: Radek Simko <radeksimko@users.noreply.github.com>
core: check preconditions and postconditions for ephemeral resources
…_block

cloud: Allows object tag schema for selecting key/value tagged workspaces
* Merge to main

* fix

* Apply suggestions from code review

Co-authored-by: Robin Norwood <robin.norwood@gmail.com>

* Apply suggestions from code review

Co-authored-by: Robin Norwood <robin.norwood@gmail.com>

* Terraform format

* Small fix

* Add ephemeral resources page

* Update website/docs/language/values/locals.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/values/locals.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/values/locals.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/values/locals.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/ephemeral.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/ephemeral.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/ephemeral.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/ephemeral.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/ephemeral.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/ephemeral.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/ephemeral.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/ephemeral.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/ephemeral.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/ephemeral.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/ephemeral.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/ephemeral.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/ephemeral.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/ephemeral.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/ephemeral.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/ephemeral.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/ephemeral.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/ephemeral.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/ephemeral.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/ephemeral.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/ephemeral.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/ephemeral.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/ephemeral.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/ephemeral.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/ephemeral.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/ephemeral.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/ephemeral.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/ephemeral.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/ephemeral.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/ephemeral.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/ephemeral.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/ephemeral.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/ephemeral.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/ephemeral.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/ephemeral.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Updates from review feedback

* Add the finishing touches

* Add terraform applying

* Halfway through

* Fix the links

* One more pass of resources

* Almost done only inputs outputs and locals to go

* Finish inputs and outputs

* Apply suggestions from code review

Co-authored-by: Robin Norwood <rnorwood@hashicorp.com>

* Add feedback

* Make example small for now

* Apply suggestions from code review

Co-authored-by: Austin Valle <austinvalle@gmail.com>

* Update website/docs/language/state/sensitive-data.mdx

* Add example to ephemeral resource page

* Reference ephemeral values in provisioner and connection blocks

* Correct output command docs

* Update website/docs/language/resources/provisioners/syntax.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Update website/docs/language/resources/provisioners/syntax.mdx

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* Reference provisioners and connection blocks

* Apply suggestions from code review

Co-authored-by: Tu Nguyen <im2nguyen@users.noreply.github.com>

---------

Co-authored-by: Robin Norwood <robin.norwood@gmail.com>
Co-authored-by: Robin Norwood <rnorwood@hashicorp.com>
Co-authored-by: Austin Valle <austinvalle@gmail.com>
Co-authored-by: Tu Nguyen <im2nguyen@users.noreply.github.com>
It turns out the reuse of the plan nodes for ephemerals during apply was
interfering with how checks are handled in the plan. Since checks
already have an established pattern of use, we can avoid the whole issue
by using only the resource apply nodes to kick of ephemeral values.

This copies the subset of expansion logic needed from the resource plan
node into the apply node. Since the apply time evaluation is much
simpler, duplicated code is not overly complex, but we may want to
revisit this for refactoring in the future.
We can't enforce the check of the close flag in mocked ephemeral
resources, since multiple instances could call the close method while
other instances are running.
Ephemeral instances are only removed as whole resources, so there should
not be missing instances from an ephemeral resource. We can't error on
missing instances, because evaluation of checks may be pulling only a
single instance for evaluation before other sibling instances have been
opened.
Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>
…checkable

add discrete codepaths for ephemeral apply nodes
…35938)

Co-authored-by: hashicorp-tsccr[bot] <hashicorp-tsccr[bot]@users.noreply.github.com>
…k-tags-behavior-in-1-10

cloud: document resource k/v tag usage
* stacks: load credentials from config file on startup

* delete unneeded file
* Bump github.com/golang-jwt/jwt/v4 from 4.5.0 to 4.5.1

Bumps [github.com/golang-jwt/jwt/v4](https://github.com/golang-jwt/jwt) from 4.5.0 to 4.5.1.
- [Release notes](https://github.com/golang-jwt/jwt/releases)
- [Changelog](https://github.com/golang-jwt/jwt/blob/main/VERSION_HISTORY.md)
- [Commits](golang-jwt/jwt@v4.5.0...v4.5.1)

---
updated-dependencies:
- dependency-name: github.com/golang-jwt/jwt/v4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* sync deps

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Liam Cervante <liam.cervante@hashicorp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.