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

feat(pulumi-aws): deploy environment variant #4501

Merged
merged 7 commits into from
Jan 24, 2025

Conversation

brunozoric
Copy link
Contributor

Changes

This PR will pass the --variant variable into all methods that rely on it to produce a correct Pulumi response.

How Has This Been Tested?

Manually.

@brunozoric brunozoric added this to the 5.43.0 milestone Jan 23, 2025
@brunozoric brunozoric requested review from Pavel910 and adrians5j and removed request for Pavel910 January 23, 2025 09:43
@brunozoric brunozoric self-assigned this Jan 23, 2025
@brunozoric brunozoric force-pushed the bruno/feat/pulumi-aws/deploy-variant branch from cb6d172 to 8694dea Compare January 24, 2025 09:29
@brunozoric brunozoric marked this pull request as ready for review January 24, 2025 09:55
@brunozoric brunozoric force-pushed the bruno/feat/pulumi-aws/deploy-variant branch from 8694dea to 61bea26 Compare January 24, 2025 13:19
@@ -4,6 +4,8 @@ import { CliContext, ProjectApplication } from "@webiny/cli/types";
export interface CallableParams {
inputs: Record<string, any>;
env: string;
// TODO put to optional
Copy link
Member

Choose a reason for hiding this comment

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

Is this for later or should this be done now?

@@ -9,6 +9,8 @@ export function getStackOutput<TStackOutput = Record<string, unknown>>(
export function getStackOutput<TStackOutput = Record<string, any>>(options: {
folder: string;
env: string;
// TODO put to optional
Copy link
Member

Choose a reason for hiding this comment

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

Another TODO here.

@@ -30,6 +30,7 @@ export default {
getStackOutput({
folder: "project-applications-path/api",
env: options.env,
variant: options.variant,
Copy link
Member

Choose a reason for hiding this comment

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

We should probably just delete this whole package. :D
Maybe we can discuss this with Pavel.

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 we can also delete this. Let's check with @Pavel910 .

@@ -19,7 +19,11 @@ export type PulumiProgram<TApp = PulumiApp, TResources = Record<string, any>> =
) => TResources | Promise<TResources>;

export type CreateConfig = Record<string, any>;
export type RunConfig = Record<string, any>;
// TODO bring back Record<string, any>
Copy link
Member

Choose a reason for hiding this comment

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

This is for later?

@brunozoric brunozoric merged commit f7b1b04 into next Jan 24, 2025
19 checks passed
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