Skip to content

fix(cli): add default outputs#107

Draft
tjholm wants to merge 1 commit intomainfrom
default-outputs
Draft

fix(cli): add default outputs#107
tjholm wants to merge 1 commit intomainfrom
default-outputs

Conversation

@tjholm
Copy link
Member

@tjholm tjholm commented Oct 7, 2025

Adds outputs that default to terraform module outputs

Fixes: NIT-378

If plugins are missing outputs they simply need to be added to the terraform outputs.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 7, 2025

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

}

func (td *TerraformDeployment) createOutputsForModule(name string, module cdktf.TerraformHclModule) {
cdktf.NewTerraformOutput(td.stack, jsii.Sprintf("%s_outputs", name), &cdktf.TerraformOutputConfig{
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently outputs are scoped to <resource_name>_outputs, but this can possibly just be resource_name?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the _outputs is redundant and most modules and examples don't use it.

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.

4 participants