-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to v4.17.1 of the AWS Terraform Provider (#1991)
- Loading branch information
Showing
93 changed files
with
8,650 additions
and
269 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,87 @@ | ||
module github.com/hashicorp/terraform-provider-aws/shim | ||
|
||
go 1.16 | ||
go 1.17 | ||
|
||
require ( | ||
github.com/hashicorp/terraform-plugin-sdk/v2 v2.16.0 | ||
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.20220527193150-cd0b4177bd65 | ||
require ( | ||
github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7 // indirect | ||
github.com/agext/levenshtein v1.2.2 // indirect | ||
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect | ||
github.com/aws/aws-sdk-go v1.44.25 // indirect | ||
github.com/aws/aws-sdk-go-v2 v1.16.4 // indirect | ||
github.com/aws/aws-sdk-go-v2/config v1.15.4 // indirect | ||
github.com/aws/aws-sdk-go-v2/credentials v1.12.0 // indirect | ||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.12.5 // indirect | ||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.11 // indirect | ||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.5 // indirect | ||
github.com/aws/aws-sdk-go-v2/internal/ini v1.3.11 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/iam v1.18.4 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.4 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/route53domains v1.12.5 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/sso v1.11.4 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/sts v1.16.4 // indirect | ||
github.com/aws/smithy-go v1.11.2 // indirect | ||
github.com/beevik/etree v1.1.0 // indirect | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/fatih/color v1.9.0 // indirect | ||
github.com/golang/protobuf v1.5.2 // indirect | ||
github.com/google/go-cmp v0.5.8 // indirect | ||
github.com/hashicorp/aws-cloudformation-resource-schema-sdk-go v0.17.0 // indirect | ||
github.com/hashicorp/aws-sdk-go-base v1.1.0 // indirect | ||
github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.16 // indirect | ||
github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2 v2.0.0-beta.17 // indirect | ||
github.com/hashicorp/awspolicyequivalence v1.5.0 // indirect | ||
github.com/hashicorp/errwrap v1.1.0 // indirect | ||
github.com/hashicorp/go-checkpoint v0.5.0 // indirect | ||
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect | ||
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect | ||
github.com/hashicorp/go-hclog v1.2.0 // indirect | ||
github.com/hashicorp/go-multierror v1.1.1 // indirect | ||
github.com/hashicorp/go-plugin v1.4.3 // indirect | ||
github.com/hashicorp/go-uuid v1.0.3 // indirect | ||
github.com/hashicorp/go-version v1.5.0 // indirect | ||
github.com/hashicorp/hc-install v0.3.2 // indirect | ||
github.com/hashicorp/hcl/v2 v2.12.0 // indirect | ||
github.com/hashicorp/logutils v1.0.0 // indirect | ||
github.com/hashicorp/terraform-exec v0.16.1 // indirect | ||
github.com/hashicorp/terraform-json v0.13.0 // indirect | ||
github.com/hashicorp/terraform-plugin-go v0.9.0 // indirect | ||
github.com/hashicorp/terraform-plugin-log v0.4.0 // indirect | ||
github.com/hashicorp/terraform-registry-address v0.0.0-20210412075316-9b2996cce896 // indirect | ||
github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 // indirect | ||
github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d // indirect | ||
github.com/jmespath/go-jmespath v0.4.0 // indirect | ||
github.com/mattbaird/jsonpatch v0.0.0-20200820163806-098863c1fc24 // indirect | ||
github.com/mattn/go-colorable v0.1.7 // indirect | ||
github.com/mattn/go-isatty v0.0.12 // indirect | ||
github.com/mitchellh/copystructure v1.2.0 // indirect | ||
github.com/mitchellh/go-homedir v1.1.0 // indirect | ||
github.com/mitchellh/go-testing-interface v1.14.1 // indirect | ||
github.com/mitchellh/go-wordwrap v1.0.0 // indirect | ||
github.com/mitchellh/mapstructure v1.5.0 // indirect | ||
github.com/mitchellh/reflectwalk v1.0.2 // indirect | ||
github.com/oklog/run v1.0.0 // indirect | ||
github.com/shopspring/decimal v1.3.1 // indirect | ||
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect | ||
github.com/vmihailenco/msgpack/v4 v4.3.12 // indirect | ||
github.com/vmihailenco/tagparser v0.1.1 // indirect | ||
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f // indirect | ||
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect | ||
github.com/xeipuuv/gojsonschema v1.2.0 // indirect | ||
github.com/zclconf/go-cty v1.10.0 // indirect | ||
golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e // indirect | ||
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd // indirect | ||
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e // indirect | ||
golang.org/x/text v0.3.7 // indirect | ||
google.golang.org/appengine v1.6.6 // indirect | ||
google.golang.org/genproto v0.0.0-20200711021454-869866162049 // indirect | ||
google.golang.org/grpc v1.45.0 // indirect | ||
google.golang.org/protobuf v1.28.0 // indirect | ||
gopkg.in/yaml.v2 v2.4.0 // indirect | ||
) | ||
|
||
replace github.com/hashicorp/terraform-provider-aws => github.com/pulumi/terraform-provider-aws v1.38.1-0.20220604110522-6aad18ac67d4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,176 @@ | ||
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** | ||
// *** Do not edit by hand unless you're certain you know what you are doing! *** | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.Collections.Immutable; | ||
using System.Threading.Tasks; | ||
using Pulumi.Serialization; | ||
|
||
namespace Pulumi.Aws.Acmpca | ||
{ | ||
/// <summary> | ||
/// Attaches a resource based policy to a private CA. | ||
/// | ||
/// ## Example Usage | ||
/// ### Basic | ||
/// | ||
/// ```csharp | ||
/// using Pulumi; | ||
/// using Aws = Pulumi.Aws; | ||
/// | ||
/// class MyStack : Stack | ||
/// { | ||
/// public MyStack() | ||
/// { | ||
/// var example = new Aws.Acmpca.Policy("example", new Aws.Acmpca.PolicyArgs | ||
/// { | ||
/// ResourceArn = aws_acmpca_certificate_authority.Example.Arn, | ||
/// Policy = @$"{{ | ||
/// ""Version"":""2012-10-17"", | ||
/// ""Statement"":[ | ||
/// {{ | ||
/// ""Sid"":""1"", | ||
/// ""Effect"":""Allow"", | ||
/// ""Principal"":{{ | ||
/// ""AWS"":""{data.Aws_caller_identity.Current.Account_id}"" | ||
/// }}, | ||
/// ""Action"":[ | ||
/// ""acm-pca:DescribeCertificateAuthority"", | ||
/// ""acm-pca:GetCertificate"", | ||
/// ""acm-pca:GetCertificateAuthorityCertificate"", | ||
/// ""acm-pca:ListPermissions"", | ||
/// ""acm-pca:ListTags"" | ||
/// ], | ||
/// ""Resource"":""{aws_acmpca_certificate_authority.Example.Arn}"" | ||
/// }}, | ||
/// {{ | ||
/// ""Sid"":""1"", | ||
/// ""Effect"":""Allow"", | ||
/// ""Principal"":{{ | ||
/// ""AWS"":""{data.Aws_caller_identity.Current.Account_id}"" | ||
/// }}, | ||
/// ""Action"":[ | ||
/// ""acm-pca:IssueCertificate"" | ||
/// ], | ||
/// ""Resource"":""{aws_acmpca_certificate_authority.Example.Arn}"", | ||
/// ""Condition"":{{ | ||
/// ""StringEquals"":{{ | ||
/// ""acm-pca:TemplateArn"":""arn:aws:acm-pca:::template/EndEntityCertificate/V1"" | ||
/// }} | ||
/// }} | ||
/// }} | ||
/// ] | ||
/// }} | ||
/// ", | ||
/// }); | ||
/// } | ||
/// | ||
/// } | ||
/// ``` | ||
/// | ||
/// ## Import | ||
/// | ||
/// `aws_acmpca_policy` can be imported using the `resource_arn` value. | ||
/// | ||
/// ```sh | ||
/// $ pulumi import aws:acmpca/policy:Policy example arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012 | ||
/// ``` | ||
/// </summary> | ||
[AwsResourceType("aws:acmpca/policy:Policy")] | ||
public partial class Policy : Pulumi.CustomResource | ||
{ | ||
/// <summary> | ||
/// JSON-formatted IAM policy to attach to the specified private CA resource. | ||
/// </summary> | ||
[Output("policy")] | ||
public Output<string> PolicyDetails { get; private set; } = null!; | ||
|
||
/// <summary> | ||
/// Amazon Resource Name (ARN) of the private CA to associate with the policy. | ||
/// </summary> | ||
[Output("resourceArn")] | ||
public Output<string> ResourceArn { get; private set; } = null!; | ||
|
||
|
||
/// <summary> | ||
/// Create a Policy resource with the given unique name, arguments, and options. | ||
/// </summary> | ||
/// | ||
/// <param name="name">The unique name of the resource</param> | ||
/// <param name="args">The arguments used to populate this resource's properties</param> | ||
/// <param name="options">A bag of options that control this resource's behavior</param> | ||
public Policy(string name, PolicyArgs args, CustomResourceOptions? options = null) | ||
: base("aws:acmpca/policy:Policy", name, args ?? new PolicyArgs(), MakeResourceOptions(options, "")) | ||
{ | ||
} | ||
|
||
private Policy(string name, Input<string> id, PolicyState? state = null, CustomResourceOptions? options = null) | ||
: base("aws:acmpca/policy:Policy", name, state, MakeResourceOptions(options, id)) | ||
{ | ||
} | ||
|
||
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id) | ||
{ | ||
var defaultOptions = new CustomResourceOptions | ||
{ | ||
Version = Utilities.Version, | ||
}; | ||
var merged = CustomResourceOptions.Merge(defaultOptions, options); | ||
// Override the ID if one was specified for consistency with other language SDKs. | ||
merged.Id = id ?? merged.Id; | ||
return merged; | ||
} | ||
/// <summary> | ||
/// Get an existing Policy resource's state with the given name, ID, and optional extra | ||
/// properties used to qualify the lookup. | ||
/// </summary> | ||
/// | ||
/// <param name="name">The unique name of the resulting resource.</param> | ||
/// <param name="id">The unique provider ID of the resource to lookup.</param> | ||
/// <param name="state">Any extra arguments used during the lookup.</param> | ||
/// <param name="options">A bag of options that control this resource's behavior</param> | ||
public static Policy Get(string name, Input<string> id, PolicyState? state = null, CustomResourceOptions? options = null) | ||
{ | ||
return new Policy(name, id, state, options); | ||
} | ||
} | ||
|
||
public sealed class PolicyArgs : Pulumi.ResourceArgs | ||
{ | ||
/// <summary> | ||
/// JSON-formatted IAM policy to attach to the specified private CA resource. | ||
/// </summary> | ||
[Input("policy", required: true)] | ||
public Input<string> PolicyDetails { get; set; } = null!; | ||
|
||
/// <summary> | ||
/// Amazon Resource Name (ARN) of the private CA to associate with the policy. | ||
/// </summary> | ||
[Input("resourceArn", required: true)] | ||
public Input<string> ResourceArn { get; set; } = null!; | ||
|
||
public PolicyArgs() | ||
{ | ||
} | ||
} | ||
|
||
public sealed class PolicyState : Pulumi.ResourceArgs | ||
{ | ||
/// <summary> | ||
/// JSON-formatted IAM policy to attach to the specified private CA resource. | ||
/// </summary> | ||
[Input("policy")] | ||
public Input<string>? PolicyDetails { get; set; } | ||
|
||
/// <summary> | ||
/// Amazon Resource Name (ARN) of the private CA to associate with the policy. | ||
/// </summary> | ||
[Input("resourceArn")] | ||
public Input<string>? ResourceArn { get; set; } | ||
|
||
public PolicyState() | ||
{ | ||
} | ||
} | ||
} |
Oops, something went wrong.