Skip to content

Do we have a support to define dependency between Module kind? #408

Open
@Ashish7812

Description

@Ashish7812

Operator Version, Kind and Kubernetes Version

  • Operator version:
  • Kind: Workspace | Module
  • Kubernetes version:

YAML Manifest File

# Copy-paste your YAML manifest here

Output Log

Kubectl Outputs

Question

I am using the Module kind to deploy my infrastructure. The infrastructure layer is divided into two modules.

  1. Network
  2. Compute

The following one is for the Network module.

apiVersion: app.terraform.io/v1alpha2
kind: Module
metadata:
name: network
spec:
organization:
token:
secretKeyRef:
name: terraformrc
key: token
destroyOnDeletion: true
module:
source: "s3::https://s3.amazonaws.com//network.zip"
variables:
- name: Owner
- name: Region
- name: StageName
workspace:
name: workspace-a1

Similarly I have created for the compute module. The question is how can I define the dependency between these two modules so that the network should be deployed first and then the compute module will be deployed.

The two modules will be deployed in the same workspace. Can we define a dependency between modules in the same workspace?

References

Community Note

  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions