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

WIP: expose PF-based resources #2464

Closed
wants to merge 70 commits into from
Closed

WIP: expose PF-based resources #2464

wants to merge 70 commits into from

Conversation

t0yv0
Copy link
Member

@t0yv0 t0yv0 commented Apr 13, 2023

No description provided.

Comment on lines +18 to +26
primary, err := provider.New(ctx)
if err != nil {
panic(err)
return UpstreamProvider{}, err
}
return prov
pf := fwprovider.New(primary)
return UpstreamProvider{
SDKV2Provider: primary,
PluginFrameworkProvider: pf,
}, nil
Copy link
Member

Choose a reason for hiding this comment

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

@t0yv0 I think the reason we are seeing behavior from the SDK side effect the PF side is because we are passing back the same provider (with its backing state).

Copy link
Member Author

Choose a reason for hiding this comment

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

We have to do it. If we don't do it PF side is unable to deploy resources.

Copy link
Member Author

Choose a reason for hiding this comment

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

Specifically it panics with malconfigured AWS client, which only gets configured in sdkv2-style callback. I can dig this up if it doesn't ring a bell.

@t0yv0
Copy link
Member Author

t0yv0 commented Apr 17, 2023

Noticing weird SetAutoNaming interaction with @iwahbe - new resources based on PF do not yet support auto naming a runtime until pulumi/pulumi-terraform-bridge#917 is done but as written the schema-time SetAutonaming call works and makes their required "name" properties optional. The warning is elided due to incorrect check.

Could move resource definitions around so that SetAutoNaming does not apply to them.

Wondering if this is a blocker for releasing an update, can we release with a required "name" property and then relax to optional for the new resources?

@github-actions
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.

New resources:

  • auditmanager/accountRegistration.AccountRegistration
  • auditmanager/assessment.Assessment
  • auditmanager/assessmentDelegation.AssessmentDelegation
  • auditmanager/assessmentReport.AssessmentReport
  • auditmanager/control.Control
  • auditmanager/framework.Framework
  • auditmanager/frameworkShare.FrameworkShare
  • auditmanager/organizationAdminAccountRegistration.OrganizationAdminAccountRegistration
  • medialive/multiplexProgram.MultiplexProgram
  • rds/exportTask.ExportTask
  • resourceexplorer/index.Index
  • resourceexplorer/view.View
  • route53/cidrCollection.CidrCollection
  • route53/cidrLocation.CidrLocation
  • vpc/securityGroupEgressRule.SecurityGroupEgressRule
  • vpc/securityGroupIngressRule.SecurityGroupIngressRule

New functions:

  • auditmanager/getControl.getControl
  • auditmanager/getFramework.getFramework
  • vpc/getSecurityGroupRule.getSecurityGroupRule
  • vpc/getSecurityGroupRules.getSecurityGroupRules

@github-actions
Copy link

github-actions bot commented May 2, 2023

Does the PR have any schema changes?

Looking good! No breaking changes found.

New resources:

  • auditmanager/accountRegistration.AccountRegistration
  • auditmanager/assessment.Assessment
  • auditmanager/assessmentDelegation.AssessmentDelegation
  • auditmanager/assessmentReport.AssessmentReport
  • auditmanager/control.Control
  • auditmanager/framework.Framework
  • auditmanager/frameworkShare.FrameworkShare
  • auditmanager/organizationAdminAccountRegistration.OrganizationAdminAccountRegistration
  • medialive/multiplexProgram.MultiplexProgram
  • quicksight/iamPolicyAssignment.IamPolicyAssignment
  • quicksight/ingestion.Ingestion
  • rds/exportTask.ExportTask
  • resourceexplorer/index.Index
  • resourceexplorer/view.View
  • route53/cidrCollection.CidrCollection
  • route53/cidrLocation.CidrLocation
  • vpc/securityGroupEgressRule.SecurityGroupEgressRule
  • vpc/securityGroupIngressRule.SecurityGroupIngressRule

New functions:

  • auditmanager/getControl.getControl
  • auditmanager/getFramework.getFramework
  • vpc/getSecurityGroupRule.getSecurityGroupRule
  • vpc/getSecurityGroupRules.getSecurityGroupRules

@github-actions
Copy link

github-actions bot commented May 9, 2023

Does the PR have any schema changes?

Looking good! No breaking changes found.

New resources:

  • auditmanager/accountRegistration.AccountRegistration
  • auditmanager/assessment.Assessment
  • auditmanager/assessmentDelegation.AssessmentDelegation
  • auditmanager/assessmentReport.AssessmentReport
  • auditmanager/control.Control
  • auditmanager/framework.Framework
  • auditmanager/frameworkShare.FrameworkShare
  • auditmanager/organizationAdminAccountRegistration.OrganizationAdminAccountRegistration
  • medialive/multiplexProgram.MultiplexProgram
  • quicksight/folderMembership.FolderMembership
  • quicksight/iamPolicyAssignment.IamPolicyAssignment
  • quicksight/ingestion.Ingestion
  • quicksight/refreshSchedule.RefreshSchedule
  • rds/exportTask.ExportTask
  • resourceexplorer/index.Index
  • resourceexplorer/view.View
  • route53/cidrCollection.CidrCollection
  • route53/cidrLocation.CidrLocation
  • vpc/securityGroupEgressRule.SecurityGroupEgressRule
  • vpc/securityGroupIngressRule.SecurityGroupIngressRule

New functions:

  • auditmanager/getControl.getControl
  • auditmanager/getFramework.getFramework
  • vpc/getSecurityGroupRule.getSecurityGroupRule
  • vpc/getSecurityGroupRules.getSecurityGroupRules

@github-actions
Copy link

github-actions bot commented May 9, 2023

Does the PR have any schema changes?

Looking good! No breaking changes found.

New resources:

  • auditmanager/accountRegistration.AccountRegistration
  • auditmanager/assessment.Assessment
  • auditmanager/assessmentDelegation.AssessmentDelegation
  • auditmanager/assessmentReport.AssessmentReport
  • auditmanager/control.Control
  • auditmanager/framework.Framework
  • auditmanager/frameworkShare.FrameworkShare
  • auditmanager/organizationAdminAccountRegistration.OrganizationAdminAccountRegistration
  • medialive/multiplexProgram.MultiplexProgram
  • quicksight/folderMembership.FolderMembership
  • quicksight/iamPolicyAssignment.IamPolicyAssignment
  • quicksight/ingestion.Ingestion
  • quicksight/refreshSchedule.RefreshSchedule
  • rds/exportTask.ExportTask
  • resourceexplorer/index.Index
  • resourceexplorer/view.View
  • route53/cidrCollection.CidrCollection
  • route53/cidrLocation.CidrLocation
  • vpc/securityGroupEgressRule.SecurityGroupEgressRule
  • vpc/securityGroupIngressRule.SecurityGroupIngressRule

New functions:

  • auditmanager/getControl.getControl
  • auditmanager/getFramework.getFramework
  • vpc/getSecurityGroupRule.getSecurityGroupRule
  • vpc/getSecurityGroupRules.getSecurityGroupRules

@github-actions
Copy link

github-actions bot commented May 9, 2023

Does the PR have any schema changes?

Looking good! No breaking changes found.

New resources:

  • auditmanager/accountRegistration.AccountRegistration
  • auditmanager/assessment.Assessment
  • auditmanager/assessmentDelegation.AssessmentDelegation
  • auditmanager/assessmentReport.AssessmentReport
  • auditmanager/control.Control
  • auditmanager/framework.Framework
  • auditmanager/frameworkShare.FrameworkShare
  • auditmanager/organizationAdminAccountRegistration.OrganizationAdminAccountRegistration
  • medialive/multiplexProgram.MultiplexProgram
  • quicksight/folderMembership.FolderMembership
  • quicksight/iamPolicyAssignment.IamPolicyAssignment
  • quicksight/ingestion.Ingestion
  • quicksight/refreshSchedule.RefreshSchedule
  • rds/exportTask.ExportTask
  • resourceexplorer/index.Index
  • resourceexplorer/view.View
  • route53/cidrCollection.CidrCollection
  • route53/cidrLocation.CidrLocation
  • vpc/securityGroupEgressRule.SecurityGroupEgressRule
  • vpc/securityGroupIngressRule.SecurityGroupIngressRule

New functions:

  • auditmanager/getControl.getControl
  • auditmanager/getFramework.getFramework
  • vpc/getSecurityGroupRule.getSecurityGroupRule
  • vpc/getSecurityGroupRules.getSecurityGroupRules

@github-actions
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.

New resources:

  • auditmanager/accountRegistration.AccountRegistration
  • auditmanager/assessment.Assessment
  • auditmanager/assessmentDelegation.AssessmentDelegation
  • auditmanager/assessmentReport.AssessmentReport
  • auditmanager/control.Control
  • auditmanager/framework.Framework
  • auditmanager/frameworkShare.FrameworkShare
  • auditmanager/organizationAdminAccountRegistration.OrganizationAdminAccountRegistration
  • medialive/multiplexProgram.MultiplexProgram
  • quicksight/folderMembership.FolderMembership
  • quicksight/iamPolicyAssignment.IamPolicyAssignment
  • quicksight/ingestion.Ingestion
  • quicksight/refreshSchedule.RefreshSchedule
  • rds/exportTask.ExportTask
  • resourceexplorer/index.Index
  • resourceexplorer/view.View
  • route53/cidrCollection.CidrCollection
  • route53/cidrLocation.CidrLocation
  • vpc/securityGroupEgressRule.SecurityGroupEgressRule
  • vpc/securityGroupIngressRule.SecurityGroupIngressRule

New functions:

  • auditmanager/getControl.getControl
  • auditmanager/getFramework.getFramework
  • vpc/getSecurityGroupRule.getSecurityGroupRule
  • vpc/getSecurityGroupRules.getSecurityGroupRules

@github-actions
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.

New resources:

  • auditmanager/accountRegistration.AccountRegistration
  • auditmanager/assessment.Assessment
  • auditmanager/assessmentDelegation.AssessmentDelegation
  • auditmanager/assessmentReport.AssessmentReport
  • auditmanager/control.Control
  • auditmanager/framework.Framework
  • auditmanager/frameworkShare.FrameworkShare
  • auditmanager/organizationAdminAccountRegistration.OrganizationAdminAccountRegistration
  • medialive/multiplexProgram.MultiplexProgram
  • quicksight/folderMembership.FolderMembership
  • quicksight/iamPolicyAssignment.IamPolicyAssignment
  • quicksight/ingestion.Ingestion
  • quicksight/refreshSchedule.RefreshSchedule
  • rds/exportTask.ExportTask
  • resourceexplorer/index.Index
  • resourceexplorer/view.View
  • route53/cidrCollection.CidrCollection
  • route53/cidrLocation.CidrLocation
  • vpc/securityGroupEgressRule.SecurityGroupEgressRule
  • vpc/securityGroupIngressRule.SecurityGroupIngressRule

New functions:

  • auditmanager/getControl.getControl
  • auditmanager/getFramework.getFramework
  • vpc/getSecurityGroupRule.getSecurityGroupRule
  • vpc/getSecurityGroupRules.getSecurityGroupRules

@mikhailshilkov
Copy link
Member

Is this PR still relevant?

@iwahbe
Copy link
Member

iwahbe commented Jul 6, 2023

Is this PR still relevant?

I believe it was rendered unnecessary by #2557.

@t0yv0 t0yv0 deleted the t0yv0/muxer-example branch February 28, 2024 19:16
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.

None yet

3 participants