-
Notifications
You must be signed in to change notification settings - Fork 121
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
Reconcile terraform plugin framework resources without CLI #1086
Reconcile terraform plugin framework resources without CLI #1086
Conversation
/test-examples="examples/ec2/securitygroupingressrule.yaml" |
/test-examples="examples/cognitoidp/userpoolclient.yaml" |
/test-examples="examples/simpledb/domain.yaml" |
/test-examples="examples/appconfig/environment.yaml" |
1 similar comment
/test-examples="examples/appconfig/environment.yaml" |
6619732
to
c887497
Compare
/test-examples="examples/ec2/securitygroupingressrule.yaml" |
/test-examples="examples/cognitoidp/userpoolclient.yaml" |
/test-examples="examples/simpledb/domain.yaml" |
/test-examples="examples/appconfig/environment.yaml" |
/test-examples="examples/ec2/v1beta1/securitygroupingressrule.yaml" |
/test-examples="examples/cognitoidp/v1beta1/userpoolclient.yaml" |
/test-examples="examples/simpledb/v1beta1/domain.yaml" |
/test-examples="examples/appconfig/v1beta1/environment.yaml" |
/test-examples="examples/ec2/v1beta1/securitygroupegressrule.yaml" |
/test-examples="examples/ec2/v1beta1/securitygroupingressrule.yaml" |
/test-examples="examples/cognitoidp/v1beta1/userpoolclient.yaml" |
/test-examples="examples/simpledb/v1beta1/domain.yaml" |
/test-examples="examples/appconfig/v1beta1/environment.yaml" |
/test-examples="examples/elasticache/v1beta1/replicationgroup.yaml" |
/test-examples="examples/ec2/v1beta1/securitygroupingressrule.yaml" |
/test-examples="examples/cognitoidp/v1beta1/userpoolclient.yaml" |
/test-examples="examples/simpledb/v1beta1/domain.yaml" |
/test-examples="examples/appconfig/v1beta1/environment.yaml" |
/test-examples="examples/elasticache/v1beta1/replicationgroup.yaml" |
/test-examples="examples/elasticache/v1beta1/replicationgroup.yaml" |
/test-examples="examples/appconfig/v1beta1/environment.yaml" |
/test-examples="examples/simpledb/v1beta1/domain.yaml" |
/test-examples="examples/cognitoidp/v1beta1/userpoolclient.yaml" |
/test-examples="examples/ec2/v1beta1/securitygroupingressrule.yaml" |
/test-examples="examples/ec2/v1beta1/securitygroupegressrule.yaml" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @erhancagirici, lgtm. We may consider cleaning up the commit history.
// terraform-plugin-framework | ||
"aws_appconfig_environment": config.IdentifierFromProvider, | ||
} | ||
var CLIReconciledExternalNameConfigs = map[string]config.ExternalName{} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Let's remove this map as it's currently not needed. If we need in the future, then we can add.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets remove this at CLI removal PR.
if !configured { | ||
e, configured = CLIReconciledExternalNameConfigs[r.Name] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see the comment above regarding the CLI-based reconciliation map.
// | ||
// AppConfig Environments can be imported by using the environment ID and application ID separated by a colon (:) | ||
// terraform-plugin-framework | ||
"aws_appconfig_environment": appConfigEnvironment(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I'm not mistaken, the external-name syntax is not changing for the resource as we move from the CLI-based implementation to the native fw reconciliation. We are allowed to break APIs with the next release, and if we are breaking APIs, it's important for us to capture this in the release notes.
Signed-off-by: Cem Mergenci <cmergenci@gmail.com>
…ources Signed-off-by: Erhan Cagirici <erhan@upbound.io>
Signed-off-by: Erhan Cagirici <erhan@upbound.io>
…ix aws_cognito_user_pool_client external name config Signed-off-by: Erhan Cagirici <erhan@upbound.io>
Signed-off-by: Erhan Cagirici <erhan@upbound.io>
Signed-off-by: Erhan Cagirici <erhan@upbound.io>
Signed-off-by: Erhan Cagirici <erhan@upbound.io>
… name config Signed-off-by: Erhan Cagirici <erhan@upbound.io>
Signed-off-by: Erhan Cagirici <erhan@upbound.io>
Signed-off-by: Erhan Cagirici <erhan@upbound.io>
Signed-off-by: Erhan Cagirici <erhan@upbound.io>
Signed-off-by: Erhan Cagirici <erhan@upbound.io>
Signed-off-by: Erhan Cagirici <erhan@upbound.io>
Signed-off-by: Erhan Cagirici <erhan@upbound.io>
Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
3306ca2
to
ec4cbf8
Compare
/test-examples="examples/ec2/v1beta1/securitygroupingressrule.yaml" |
Description of your changes
Reconciles terraform plugin framework resources without CLI using the new
TerraformPluginFrameworkExternalClient
no-fork architecture.I have:
make reviewable test
to ensure this PR is ready for review.How has this code been tested