Skip to content

Commit

Permalink
aws.eks.cluster: Ensure that certificateAuthority is backward compati…
Browse files Browse the repository at this point in the history
…ble (#1898)

In #1896, we added a new backward compatible type for certificateAuthority
to ensure that it was available rather than being the new list

Unfortunately, this introduced a string and the old type for certificateauthority
was actually an object with a Data parameter inside it

This rectifies the issue
  • Loading branch information
stack72 authored Apr 7, 2022
1 parent f348b4b commit da381a2
Show file tree
Hide file tree
Showing 15 changed files with 133 additions and 73 deletions.
13 changes: 4 additions & 9 deletions provider/cmd/pulumi-resource-aws/schema.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ require (

replace (
github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20211230170131-3a7c83bfab87
github.com/hashicorp/terraform-provider-aws => github.com/pulumi/terraform-provider-aws v1.38.1-0.20220406092001-c9de35a89082
github.com/hashicorp/terraform-provider-aws => github.com/pulumi/terraform-provider-aws v1.38.1-0.20220407104105-4ef94827b0b2
github.com/hashicorp/terraform-provider-aws/shim => ./shim
github.com/hashicorp/vault => github.com/hashicorp/vault v1.2.0
)
4 changes: 2 additions & 2 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -757,8 +757,8 @@ github.com/pulumi/terraform-diff-reader v0.0.0-20201211191010-ad4715e9285e h1:Di
github.com/pulumi/terraform-diff-reader v0.0.0-20201211191010-ad4715e9285e/go.mod h1:sZ9FUzGO+yM41hsQHs/yIcj/Y993qMdBxBU5mpDmAfQ=
github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20211230170131-3a7c83bfab87 h1:Reqyb/CbcDwThvBRzA62H7cvuCqgTJuGNt+F6mnmXJ4=
github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20211230170131-3a7c83bfab87/go.mod h1:FjM9DXWfP0w/AeOtJoSKHBZ01LqmaO6uP4bXhv3fekw=
github.com/pulumi/terraform-provider-aws v1.38.1-0.20220406092001-c9de35a89082 h1:Yx5tJEgRKlAQso7nB8KOmO9KKe03N+sstTGTgqVjNjY=
github.com/pulumi/terraform-provider-aws v1.38.1-0.20220406092001-c9de35a89082/go.mod h1:JByArH1mlIVUO+Kjt0okfMRH/KKvbi0Wkyn9zGrQL5Q=
github.com/pulumi/terraform-provider-aws v1.38.1-0.20220407104105-4ef94827b0b2 h1:o4tgNxegV2prw2DK1pxXttIjVMM64AXfzKYKWlXuFSI=
github.com/pulumi/terraform-provider-aws v1.38.1-0.20220407104105-4ef94827b0b2/go.mod h1:JByArH1mlIVUO+Kjt0okfMRH/KKvbi0Wkyn9zGrQL5Q=
github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY=
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/rjeczalik/notify v0.9.2 h1:MiTWrPj55mNDHEiIX5YUSKefw/+lCQVoAFmD6oQm5w8=
Expand Down
9 changes: 8 additions & 1 deletion provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -1516,7 +1516,14 @@ func Provider() tfbridge.ProviderInfo {
},
},
// ECS for Kubernetes
"aws_eks_cluster": {Tok: awsResource(eksMod, "Cluster")},
"aws_eks_cluster": {
Tok: awsResource(eksMod, "Cluster"),
Fields: map[string]*tfbridge.SchemaInfo{
"certificate_authority": {
MaxItemsOne: boolRef(true),
},
},
},
"aws_eks_node_group": {
Tok: awsResource(eksMod, "NodeGroup"),
Fields: map[string]*tfbridge.SchemaInfo{
Expand Down
2 changes: 1 addition & 1 deletion provider/shim/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ require (
github.com/hashicorp/terraform-provider-aws v1.60.1-0.20211105002759-77bad27d9f23
)

replace github.com/hashicorp/terraform-provider-aws => github.com/pulumi/terraform-provider-aws v1.38.1-0.20220406092001-c9de35a89082
replace github.com/hashicorp/terraform-provider-aws => github.com/pulumi/terraform-provider-aws v1.38.1-0.20220407104105-4ef94827b0b2
4 changes: 2 additions & 2 deletions provider/shim/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,8 @@ github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndr
github.com/pquerna/otp v1.3.0 h1:oJV/SkzR33anKXwQU3Of42rL4wbrffP4uvUf1SvS5Xs=
github.com/pquerna/otp v1.3.0/go.mod h1:dkJfzwRKNiegxyNb54X/3fLwhCynbMspSyWKnvi1AEg=
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
github.com/pulumi/terraform-provider-aws v1.38.1-0.20220406092001-c9de35a89082 h1:Yx5tJEgRKlAQso7nB8KOmO9KKe03N+sstTGTgqVjNjY=
github.com/pulumi/terraform-provider-aws v1.38.1-0.20220406092001-c9de35a89082/go.mod h1:JByArH1mlIVUO+Kjt0okfMRH/KKvbi0Wkyn9zGrQL5Q=
github.com/pulumi/terraform-provider-aws v1.38.1-0.20220407104105-4ef94827b0b2 h1:o4tgNxegV2prw2DK1pxXttIjVMM64AXfzKYKWlXuFSI=
github.com/pulumi/terraform-provider-aws v1.38.1-0.20220407104105-4ef94827b0b2/go.mod h1:JByArH1mlIVUO+Kjt0okfMRH/KKvbi0Wkyn9zGrQL5Q=
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
github.com/sebdah/goldie v1.0.0/go.mod h1:jXP4hmWywNEwZzhMuv2ccnqTSFpuq8iyQhtQdkkZBH4=
github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=
Expand Down
6 changes: 3 additions & 3 deletions sdk/dotnet/Eks/Cluster.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace Pulumi.Aws.Eks
/// },
/// });
/// this.Endpoint = example.Endpoint;
/// this.Kubeconfig_certificate_authority_data = example.CertificateAuthority;
/// this.Kubeconfig_certificate_authority_data = example.CertificateAuthority.Apply(certificateAuthority => certificateAuthority.Data);
/// }
///
/// [Output("endpoint")]
Expand Down Expand Up @@ -162,7 +162,7 @@ public partial class Cluster : Pulumi.CustomResource
/// The first certificate authority. Base64 encoded certificate data required to communicate with your cluster.
/// </summary>
[Output("certificateAuthority")]
public Output<string> CertificateAuthority { get; private set; } = null!;
public Output<Outputs.ClusterCertificateAuthority> CertificateAuthority { get; private set; } = null!;

/// <summary>
/// Unix epoch timestamp in seconds for when the cluster was created.
Expand Down Expand Up @@ -383,7 +383,7 @@ public InputList<Inputs.ClusterCertificateAuthorityGetArgs> CertificateAuthoriti
/// The first certificate authority. Base64 encoded certificate data required to communicate with your cluster.
/// </summary>
[Input("certificateAuthority")]
public Input<string>? CertificateAuthority { get; set; }
public Input<Inputs.ClusterCertificateAuthorityGetArgs>? CertificateAuthority { get; set; }

/// <summary>
/// Unix epoch timestamp in seconds for when the cluster was created.
Expand Down
11 changes: 2 additions & 9 deletions sdk/dotnet/Eks/GetCluster.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static class GetCluster
/// Name = "example",
/// }));
/// this.Endpoint = example.Apply(example =&gt; example.Endpoint);
/// this.Kubeconfig_certificate_authority_data = example.Apply(example =&gt; example.CertificateAuthority);
/// this.Kubeconfig_certificate_authority_data = example.Apply(example =&gt; example.CertificateAuthorities?[0]?.Data);
/// this.Identity_oidc_issuer = example.Apply(example =&gt; example.Identities?[0]?.Oidcs?[0]?.Issuer);
/// }
///
Expand Down Expand Up @@ -69,7 +69,7 @@ public static Task<GetClusterResult> InvokeAsync(GetClusterArgs args, InvokeOpti
/// Name = "example",
/// }));
/// this.Endpoint = example.Apply(example =&gt; example.Endpoint);
/// this.Kubeconfig_certificate_authority_data = example.Apply(example =&gt; example.CertificateAuthority);
/// this.Kubeconfig_certificate_authority_data = example.Apply(example =&gt; example.CertificateAuthorities?[0]?.Data);
/// this.Identity_oidc_issuer = example.Apply(example =&gt; example.Identities?[0]?.Oidcs?[0]?.Issuer);
/// }
///
Expand Down Expand Up @@ -152,10 +152,6 @@ public sealed class GetClusterResult
/// </summary>
public readonly ImmutableArray<Outputs.GetClusterCertificateAuthorityResult> CertificateAuthorities;
/// <summary>
/// The first certificate authority. Base64 encoded certificate data required to communicate with your cluster.
/// </summary>
public readonly string CertificateAuthority;
/// <summary>
/// The Unix epoch time stamp in seconds for when the cluster was created.
/// </summary>
public readonly string CreatedAt;
Expand Down Expand Up @@ -211,8 +207,6 @@ private GetClusterResult(

ImmutableArray<Outputs.GetClusterCertificateAuthorityResult> certificateAuthorities,

string certificateAuthority,

string createdAt,

ImmutableArray<string> enabledClusterLogTypes,
Expand Down Expand Up @@ -241,7 +235,6 @@ private GetClusterResult(
{
Arn = arn;
CertificateAuthorities = certificateAuthorities;
CertificateAuthority = certificateAuthority;
CreatedAt = createdAt;
EnabledClusterLogTypes = enabledClusterLogTypes;
Endpoint = endpoint;
Expand Down
10 changes: 6 additions & 4 deletions sdk/go/aws/eks/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ import (
// return err
// }
// ctx.Export("endpoint", example.Endpoint)
// ctx.Export("kubeconfig-certificate-authority-data", example.CertificateAuthority)
// ctx.Export("kubeconfig-certificate-authority-data", example.CertificateAuthority.ApplyT(func(certificateAuthority eks.ClusterCertificateAuthority) (string, error) {
// return certificateAuthority.Data, nil
// }).(pulumi.StringOutput))
// return nil
// })
// }
Expand Down Expand Up @@ -145,7 +147,7 @@ type Cluster struct {
// Attribute block containing `certificate-authority-data` for your cluster. Detailed below.
CertificateAuthorities ClusterCertificateAuthorityArrayOutput `pulumi:"certificateAuthorities"`
// The first certificate authority. Base64 encoded certificate data required to communicate with your cluster.
CertificateAuthority pulumi.StringOutput `pulumi:"certificateAuthority"`
CertificateAuthority ClusterCertificateAuthorityOutput `pulumi:"certificateAuthority"`
// Unix epoch timestamp in seconds for when the cluster was created.
CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
// List of the desired control plane logging to enable. For more information, see [Amazon EKS Control Plane Logging](https://docs.aws.amazon.com/eks/latest/userguide/control-plane-logs.html).
Expand Down Expand Up @@ -216,7 +218,7 @@ type clusterState struct {
// Attribute block containing `certificate-authority-data` for your cluster. Detailed below.
CertificateAuthorities []ClusterCertificateAuthority `pulumi:"certificateAuthorities"`
// The first certificate authority. Base64 encoded certificate data required to communicate with your cluster.
CertificateAuthority *string `pulumi:"certificateAuthority"`
CertificateAuthority *ClusterCertificateAuthority `pulumi:"certificateAuthority"`
// Unix epoch timestamp in seconds for when the cluster was created.
CreatedAt *string `pulumi:"createdAt"`
// List of the desired control plane logging to enable. For more information, see [Amazon EKS Control Plane Logging](https://docs.aws.amazon.com/eks/latest/userguide/control-plane-logs.html).
Expand Down Expand Up @@ -253,7 +255,7 @@ type ClusterState struct {
// Attribute block containing `certificate-authority-data` for your cluster. Detailed below.
CertificateAuthorities ClusterCertificateAuthorityArrayInput
// The first certificate authority. Base64 encoded certificate data required to communicate with your cluster.
CertificateAuthority pulumi.StringPtrInput
CertificateAuthority ClusterCertificateAuthorityPtrInput
// Unix epoch timestamp in seconds for when the cluster was created.
CreatedAt pulumi.StringPtrInput
// List of the desired control plane logging to enable. For more information, see [Amazon EKS Control Plane Logging](https://docs.aws.amazon.com/eks/latest/userguide/control-plane-logs.html).
Expand Down
9 changes: 1 addition & 8 deletions sdk/go/aws/eks/getCluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
// return err
// }
// ctx.Export("endpoint", example.Endpoint)
// ctx.Export("kubeconfig-certificate-authority-data", example.CertificateAuthority)
// ctx.Export("kubeconfig-certificate-authority-data", example.CertificateAuthorities[0].Data)
// ctx.Export("identity-oidc-issuer", example.Identities[0].Oidcs[0].Issuer)
// return nil
// })
Expand Down Expand Up @@ -60,8 +60,6 @@ type LookupClusterResult struct {
Arn string `pulumi:"arn"`
// Nested attribute containing `certificate-authority-data` for your cluster.
CertificateAuthorities []GetClusterCertificateAuthority `pulumi:"certificateAuthorities"`
// The first certificate authority. Base64 encoded certificate data required to communicate with your cluster.
CertificateAuthority string `pulumi:"certificateAuthority"`
// The Unix epoch time stamp in seconds for when the cluster was created.
CreatedAt string `pulumi:"createdAt"`
// The enabled control plane logs.
Expand Down Expand Up @@ -135,11 +133,6 @@ func (o LookupClusterResultOutput) CertificateAuthorities() GetClusterCertificat
return o.ApplyT(func(v LookupClusterResult) []GetClusterCertificateAuthority { return v.CertificateAuthorities }).(GetClusterCertificateAuthorityArrayOutput)
}

// The first certificate authority. Base64 encoded certificate data required to communicate with your cluster.
func (o LookupClusterResultOutput) CertificateAuthority() pulumi.StringOutput {
return o.ApplyT(func(v LookupClusterResult) string { return v.CertificateAuthority }).(pulumi.StringOutput)
}

// The Unix epoch time stamp in seconds for when the cluster was created.
func (o LookupClusterResultOutput) CreatedAt() pulumi.StringOutput {
return o.ApplyT(func(v LookupClusterResult) string { return v.CreatedAt }).(pulumi.StringOutput)
Expand Down
87 changes: 87 additions & 0 deletions sdk/go/aws/eks/pulumiTypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,47 @@ func (i ClusterCertificateAuthorityArgs) ToClusterCertificateAuthorityOutputWith
return pulumi.ToOutputWithContext(ctx, i).(ClusterCertificateAuthorityOutput)
}

func (i ClusterCertificateAuthorityArgs) ToClusterCertificateAuthorityPtrOutput() ClusterCertificateAuthorityPtrOutput {
return i.ToClusterCertificateAuthorityPtrOutputWithContext(context.Background())
}

func (i ClusterCertificateAuthorityArgs) ToClusterCertificateAuthorityPtrOutputWithContext(ctx context.Context) ClusterCertificateAuthorityPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterCertificateAuthorityOutput).ToClusterCertificateAuthorityPtrOutputWithContext(ctx)
}

// ClusterCertificateAuthorityPtrInput is an input type that accepts ClusterCertificateAuthorityArgs, ClusterCertificateAuthorityPtr and ClusterCertificateAuthorityPtrOutput values.
// You can construct a concrete instance of `ClusterCertificateAuthorityPtrInput` via:
//
// ClusterCertificateAuthorityArgs{...}
//
// or:
//
// nil
type ClusterCertificateAuthorityPtrInput interface {
pulumi.Input

ToClusterCertificateAuthorityPtrOutput() ClusterCertificateAuthorityPtrOutput
ToClusterCertificateAuthorityPtrOutputWithContext(context.Context) ClusterCertificateAuthorityPtrOutput
}

type clusterCertificateAuthorityPtrType ClusterCertificateAuthorityArgs

func ClusterCertificateAuthorityPtr(v *ClusterCertificateAuthorityArgs) ClusterCertificateAuthorityPtrInput {
return (*clusterCertificateAuthorityPtrType)(v)
}

func (*clusterCertificateAuthorityPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**ClusterCertificateAuthority)(nil)).Elem()
}

func (i *clusterCertificateAuthorityPtrType) ToClusterCertificateAuthorityPtrOutput() ClusterCertificateAuthorityPtrOutput {
return i.ToClusterCertificateAuthorityPtrOutputWithContext(context.Background())
}

func (i *clusterCertificateAuthorityPtrType) ToClusterCertificateAuthorityPtrOutputWithContext(ctx context.Context) ClusterCertificateAuthorityPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterCertificateAuthorityPtrOutput)
}

// ClusterCertificateAuthorityArrayInput is an input type that accepts ClusterCertificateAuthorityArray and ClusterCertificateAuthorityArrayOutput values.
// You can construct a concrete instance of `ClusterCertificateAuthorityArrayInput` via:
//
Expand Down Expand Up @@ -82,11 +123,55 @@ func (o ClusterCertificateAuthorityOutput) ToClusterCertificateAuthorityOutputWi
return o
}

func (o ClusterCertificateAuthorityOutput) ToClusterCertificateAuthorityPtrOutput() ClusterCertificateAuthorityPtrOutput {
return o.ToClusterCertificateAuthorityPtrOutputWithContext(context.Background())
}

func (o ClusterCertificateAuthorityOutput) ToClusterCertificateAuthorityPtrOutputWithContext(ctx context.Context) ClusterCertificateAuthorityPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterCertificateAuthority) *ClusterCertificateAuthority {
return &v
}).(ClusterCertificateAuthorityPtrOutput)
}

// Base64 encoded certificate data required to communicate with your cluster. Add this to the `certificate-authority-data` section of the `kubeconfig` file for your cluster.
func (o ClusterCertificateAuthorityOutput) Data() pulumi.StringPtrOutput {
return o.ApplyT(func(v ClusterCertificateAuthority) *string { return v.Data }).(pulumi.StringPtrOutput)
}

type ClusterCertificateAuthorityPtrOutput struct{ *pulumi.OutputState }

func (ClusterCertificateAuthorityPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ClusterCertificateAuthority)(nil)).Elem()
}

func (o ClusterCertificateAuthorityPtrOutput) ToClusterCertificateAuthorityPtrOutput() ClusterCertificateAuthorityPtrOutput {
return o
}

func (o ClusterCertificateAuthorityPtrOutput) ToClusterCertificateAuthorityPtrOutputWithContext(ctx context.Context) ClusterCertificateAuthorityPtrOutput {
return o
}

func (o ClusterCertificateAuthorityPtrOutput) Elem() ClusterCertificateAuthorityOutput {
return o.ApplyT(func(v *ClusterCertificateAuthority) ClusterCertificateAuthority {
if v != nil {
return *v
}
var ret ClusterCertificateAuthority
return ret
}).(ClusterCertificateAuthorityOutput)
}

// Base64 encoded certificate data required to communicate with your cluster. Add this to the `certificate-authority-data` section of the `kubeconfig` file for your cluster.
func (o ClusterCertificateAuthorityPtrOutput) Data() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ClusterCertificateAuthority) *string {
if v == nil {
return nil
}
return v.Data
}).(pulumi.StringPtrOutput)
}

type ClusterCertificateAuthorityArrayOutput struct{ *pulumi.OutputState }

func (ClusterCertificateAuthorityArrayOutput) ElementType() reflect.Type {
Expand Down Expand Up @@ -3398,6 +3483,7 @@ func (o GetNodeGroupTaintArrayOutput) Index(i pulumi.IntInput) GetNodeGroupTaint

func init() {
pulumi.RegisterInputType(reflect.TypeOf((*ClusterCertificateAuthorityInput)(nil)).Elem(), ClusterCertificateAuthorityArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*ClusterCertificateAuthorityPtrInput)(nil)).Elem(), ClusterCertificateAuthorityArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*ClusterCertificateAuthorityArrayInput)(nil)).Elem(), ClusterCertificateAuthorityArray{})
pulumi.RegisterInputType(reflect.TypeOf((*ClusterEncryptionConfigInput)(nil)).Elem(), ClusterEncryptionConfigArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*ClusterEncryptionConfigPtrInput)(nil)).Elem(), ClusterEncryptionConfigArgs{})
Expand Down Expand Up @@ -3449,6 +3535,7 @@ func init() {
pulumi.RegisterInputType(reflect.TypeOf((*GetNodeGroupTaintInput)(nil)).Elem(), GetNodeGroupTaintArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*GetNodeGroupTaintArrayInput)(nil)).Elem(), GetNodeGroupTaintArray{})
pulumi.RegisterOutputType(ClusterCertificateAuthorityOutput{})
pulumi.RegisterOutputType(ClusterCertificateAuthorityPtrOutput{})
pulumi.RegisterOutputType(ClusterCertificateAuthorityArrayOutput{})
pulumi.RegisterOutputType(ClusterEncryptionConfigOutput{})
pulumi.RegisterOutputType(ClusterEncryptionConfigPtrOutput{})
Expand Down
6 changes: 3 additions & 3 deletions sdk/nodejs/eks/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import * as utilities from "../utilities";
* ],
* });
* export const endpoint = example.endpoint;
* export const kubeconfig_certificate_authority_data = example.certificateAuthority;
* export const kubeconfig_certificate_authority_data = example.certificateAuthority.apply(certificateAuthority => certificateAuthority.data);
* ```
* ### Example IAM Role for EKS Cluster
*
Expand Down Expand Up @@ -132,7 +132,7 @@ export class Cluster extends pulumi.CustomResource {
/**
* The first certificate authority. Base64 encoded certificate data required to communicate with your cluster.
*/
public /*out*/ readonly certificateAuthority!: pulumi.Output<string>;
public /*out*/ readonly certificateAuthority!: pulumi.Output<outputs.eks.ClusterCertificateAuthority>;
/**
* Unix epoch timestamp in seconds for when the cluster was created.
*/
Expand Down Expand Up @@ -266,7 +266,7 @@ export interface ClusterState {
/**
* The first certificate authority. Base64 encoded certificate data required to communicate with your cluster.
*/
certificateAuthority?: pulumi.Input<string>;
certificateAuthority?: pulumi.Input<inputs.eks.ClusterCertificateAuthority>;
/**
* Unix epoch timestamp in seconds for when the cluster was created.
*/
Expand Down
Loading

0 comments on commit da381a2

Please sign in to comment.