diff --git a/apis/iam/v1alpha1/zz_accesskey_types.go b/apis/iam/v1alpha1/zz_accesskey_types.go index d4a57c9eb..d502a573b 100755 --- a/apis/iam/v1alpha1/zz_accesskey_types.go +++ b/apis/iam/v1alpha1/zz_accesskey_types.go @@ -40,11 +40,6 @@ type AccessKeyParameters struct { // +kubebuilder:validation:Optional PgpKey *string `json:"pgpKey,omitempty" tf:"pgp_key,omitempty"` - // Region is the region you'd like your resource to be created in. - // +terrajet:crd:field:TFTag=- - // +kubebuilder:validation:Required - Region *string `json:"region" tf:"-"` - // +kubebuilder:validation:Optional Status *string `json:"status,omitempty" tf:"status,omitempty"` diff --git a/apis/iam/v1alpha1/zz_generated.deepcopy.go b/apis/iam/v1alpha1/zz_generated.deepcopy.go index 43240095a..0c6da0e4a 100644 --- a/apis/iam/v1alpha1/zz_generated.deepcopy.go +++ b/apis/iam/v1alpha1/zz_generated.deepcopy.go @@ -127,11 +127,6 @@ func (in *AccessKeyParameters) DeepCopyInto(out *AccessKeyParameters) { *out = new(string) **out = **in } - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } if in.Status != nil { in, out := &in.Status, &out.Status *out = new(string) @@ -332,11 +327,6 @@ func (in *GroupPolicyAttachmentParameters) DeepCopyInto(out *GroupPolicyAttachme *out = new(v1.Selector) (*in).DeepCopyInto(*out) } - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupPolicyAttachmentParameters. @@ -453,11 +443,6 @@ func (in *GroupPolicyParameters) DeepCopyInto(out *GroupPolicyParameters) { *out = new(string) **out = **in } - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupPolicyParameters. @@ -596,11 +581,6 @@ func (in *IAMGroupParameters) DeepCopyInto(out *IAMGroupParameters) { *out = new(string) **out = **in } - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IAMGroupParameters. @@ -799,11 +779,6 @@ func (in *InstanceProfileParameters) DeepCopyInto(out *InstanceProfileParameters *out = new(string) **out = **in } - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } if in.Role != nil { in, out := &in.Role, &out.Role *out = new(string) @@ -1025,11 +1000,6 @@ func (in *PolicyAttachmentParameters) DeepCopyInto(out *PolicyAttachmentParamete *out = new(v1.Selector) (*in).DeepCopyInto(*out) } - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } if in.Roles != nil { in, out := &in.Roles, &out.Roles *out = make([]*string, len(*in)) @@ -1218,11 +1188,6 @@ func (in *PolicyParameters) DeepCopyInto(out *PolicyParameters) { *out = new(string) **out = **in } - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } if in.Tags != nil { in, out := &in.Tags, &out.Tags *out = make(map[string]*string, len(*in)) @@ -1439,11 +1404,6 @@ func (in *RoleParameters) DeepCopyInto(out *RoleParameters) { *out = new(string) **out = **in } - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } if in.Tags != nil { in, out := &in.Tags, &out.Tags *out = make(map[string]*string, len(*in)) @@ -1590,11 +1550,6 @@ func (in *RolePolicyAttachmentParameters) DeepCopyInto(out *RolePolicyAttachment *out = new(v1.Selector) (*in).DeepCopyInto(*out) } - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } if in.Role != nil { in, out := &in.Role, &out.Role *out = new(string) @@ -1711,11 +1666,6 @@ func (in *RolePolicyParameters) DeepCopyInto(out *RolePolicyParameters) { *out = new(string) **out = **in } - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } if in.Role != nil { in, out := &in.Role, &out.Role *out = new(string) @@ -1926,11 +1876,6 @@ func (in *UserGroupMembershipParameters) DeepCopyInto(out *UserGroupMembershipPa *out = new(v1.Selector) (*in).DeepCopyInto(*out) } - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } if in.User != nil { in, out := &in.User, &out.User *out = new(string) @@ -2082,11 +2027,6 @@ func (in *UserParameters) DeepCopyInto(out *UserParameters) { *out = new(string) **out = **in } - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } if in.Tags != nil { in, out := &in.Tags, &out.Tags *out = make(map[string]*string, len(*in)) @@ -2233,11 +2173,6 @@ func (in *UserPolicyAttachmentParameters) DeepCopyInto(out *UserPolicyAttachment *out = new(v1.Selector) (*in).DeepCopyInto(*out) } - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } if in.User != nil { in, out := &in.User, &out.User *out = new(string) @@ -2364,11 +2299,6 @@ func (in *UserPolicyParameters) DeepCopyInto(out *UserPolicyParameters) { *out = new(string) **out = **in } - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } if in.User != nil { in, out := &in.User, &out.User *out = new(string) diff --git a/apis/iam/v1alpha1/zz_grouppolicy_types.go b/apis/iam/v1alpha1/zz_grouppolicy_types.go index 68cac6374..72b6d79c2 100755 --- a/apis/iam/v1alpha1/zz_grouppolicy_types.go +++ b/apis/iam/v1alpha1/zz_grouppolicy_types.go @@ -42,11 +42,6 @@ type GroupPolicyParameters struct { // +kubebuilder:validation:Required Policy *string `json:"policy" tf:"policy,omitempty"` - - // Region is the region you'd like your resource to be created in. - // +terrajet:crd:field:TFTag=- - // +kubebuilder:validation:Required - Region *string `json:"region" tf:"-"` } // GroupPolicySpec defines the desired state of GroupPolicy diff --git a/apis/iam/v1alpha1/zz_grouppolicyattachment_types.go b/apis/iam/v1alpha1/zz_grouppolicyattachment_types.go index 7dec8726f..595a9b94d 100755 --- a/apis/iam/v1alpha1/zz_grouppolicyattachment_types.go +++ b/apis/iam/v1alpha1/zz_grouppolicyattachment_types.go @@ -50,11 +50,6 @@ type GroupPolicyAttachmentParameters struct { // +kubebuilder:validation:Optional PolicyArnSelector *v1.Selector `json:"policyArnSelector,omitempty" tf:"-"` - - // Region is the region you'd like your resource to be created in. - // +terrajet:crd:field:TFTag=- - // +kubebuilder:validation:Required - Region *string `json:"region" tf:"-"` } // GroupPolicyAttachmentSpec defines the desired state of GroupPolicyAttachment diff --git a/apis/iam/v1alpha1/zz_iamgroup_types.go b/apis/iam/v1alpha1/zz_iamgroup_types.go index 4144befee..8e7b29d63 100755 --- a/apis/iam/v1alpha1/zz_iamgroup_types.go +++ b/apis/iam/v1alpha1/zz_iamgroup_types.go @@ -35,11 +35,6 @@ type IAMGroupParameters struct { // +kubebuilder:validation:Optional Path *string `json:"path,omitempty" tf:"path,omitempty"` - - // Region is the region you'd like your resource to be created in. - // +terrajet:crd:field:TFTag=- - // +kubebuilder:validation:Required - Region *string `json:"region" tf:"-"` } // IAMGroupSpec defines the desired state of IAMGroup diff --git a/apis/iam/v1alpha1/zz_instanceprofile_types.go b/apis/iam/v1alpha1/zz_instanceprofile_types.go index b70f24d5e..7d72f9531 100755 --- a/apis/iam/v1alpha1/zz_instanceprofile_types.go +++ b/apis/iam/v1alpha1/zz_instanceprofile_types.go @@ -40,11 +40,6 @@ type InstanceProfileParameters struct { // +kubebuilder:validation:Optional Path *string `json:"path,omitempty" tf:"path,omitempty"` - // Region is the region you'd like your resource to be created in. - // +terrajet:crd:field:TFTag=- - // +kubebuilder:validation:Required - Region *string `json:"region" tf:"-"` - // +crossplane:generate:reference:type=Role // +kubebuilder:validation:Optional Role *string `json:"role,omitempty" tf:"role,omitempty"` diff --git a/apis/iam/v1alpha1/zz_policy_types.go b/apis/iam/v1alpha1/zz_policy_types.go index 9abc674d9..a628f486f 100755 --- a/apis/iam/v1alpha1/zz_policy_types.go +++ b/apis/iam/v1alpha1/zz_policy_types.go @@ -50,11 +50,6 @@ type PolicyParameters struct { // +kubebuilder:validation:Required Policy *string `json:"policy" tf:"policy,omitempty"` - // Region is the region you'd like your resource to be created in. - // +terrajet:crd:field:TFTag=- - // +kubebuilder:validation:Required - Region *string `json:"region" tf:"-"` - // +kubebuilder:validation:Optional Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` } diff --git a/apis/iam/v1alpha1/zz_policyattachment_types.go b/apis/iam/v1alpha1/zz_policyattachment_types.go index baf3b0932..06c81c477 100755 --- a/apis/iam/v1alpha1/zz_policyattachment_types.go +++ b/apis/iam/v1alpha1/zz_policyattachment_types.go @@ -54,11 +54,6 @@ type PolicyAttachmentParameters struct { // +kubebuilder:validation:Optional PolicyArnSelector *v1.Selector `json:"policyArnSelector,omitempty" tf:"-"` - // Region is the region you'd like your resource to be created in. - // +terrajet:crd:field:TFTag=- - // +kubebuilder:validation:Required - Region *string `json:"region" tf:"-"` - // +crossplane:generate:reference:type=Role // +kubebuilder:validation:Optional Roles []*string `json:"roles,omitempty" tf:"roles,omitempty"` diff --git a/apis/iam/v1alpha1/zz_role_types.go b/apis/iam/v1alpha1/zz_role_types.go index 339602bac..551075cd1 100755 --- a/apis/iam/v1alpha1/zz_role_types.go +++ b/apis/iam/v1alpha1/zz_role_types.go @@ -73,11 +73,6 @@ type RoleParameters struct { // +kubebuilder:validation:Optional PermissionsBoundary *string `json:"permissionsBoundary,omitempty" tf:"permissions_boundary,omitempty"` - // Region is the region you'd like your resource to be created in. - // +terrajet:crd:field:TFTag=- - // +kubebuilder:validation:Required - Region *string `json:"region" tf:"-"` - // +kubebuilder:validation:Optional Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` } diff --git a/apis/iam/v1alpha1/zz_rolepolicy_types.go b/apis/iam/v1alpha1/zz_rolepolicy_types.go index 3cfd530d3..ac5b909eb 100755 --- a/apis/iam/v1alpha1/zz_rolepolicy_types.go +++ b/apis/iam/v1alpha1/zz_rolepolicy_types.go @@ -33,11 +33,6 @@ type RolePolicyParameters struct { // +kubebuilder:validation:Required Policy *string `json:"policy" tf:"policy,omitempty"` - // Region is the region you'd like your resource to be created in. - // +terrajet:crd:field:TFTag=- - // +kubebuilder:validation:Required - Region *string `json:"region" tf:"-"` - // +kubebuilder:validation:Required Role *string `json:"role" tf:"role,omitempty"` } diff --git a/apis/iam/v1alpha1/zz_rolepolicyattachment_types.go b/apis/iam/v1alpha1/zz_rolepolicyattachment_types.go index 7e72703a6..d1f820bd6 100755 --- a/apis/iam/v1alpha1/zz_rolepolicyattachment_types.go +++ b/apis/iam/v1alpha1/zz_rolepolicyattachment_types.go @@ -41,11 +41,6 @@ type RolePolicyAttachmentParameters struct { // +kubebuilder:validation:Optional PolicyArnSelector *v1.Selector `json:"policyArnSelector,omitempty" tf:"-"` - // Region is the region you'd like your resource to be created in. - // +terrajet:crd:field:TFTag=- - // +kubebuilder:validation:Required - Region *string `json:"region" tf:"-"` - // +crossplane:generate:reference:type=Role // +kubebuilder:validation:Optional Role *string `json:"role,omitempty" tf:"role,omitempty"` diff --git a/apis/iam/v1alpha1/zz_user_types.go b/apis/iam/v1alpha1/zz_user_types.go index 1a0f13078..dddc06692 100755 --- a/apis/iam/v1alpha1/zz_user_types.go +++ b/apis/iam/v1alpha1/zz_user_types.go @@ -45,11 +45,6 @@ type UserParameters struct { // +kubebuilder:validation:Optional PermissionsBoundary *string `json:"permissionsBoundary,omitempty" tf:"permissions_boundary,omitempty"` - // Region is the region you'd like your resource to be created in. - // +terrajet:crd:field:TFTag=- - // +kubebuilder:validation:Required - Region *string `json:"region" tf:"-"` - // +kubebuilder:validation:Optional Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` } diff --git a/apis/iam/v1alpha1/zz_usergroupmembership_types.go b/apis/iam/v1alpha1/zz_usergroupmembership_types.go index 1f59cc89d..64d725228 100755 --- a/apis/iam/v1alpha1/zz_usergroupmembership_types.go +++ b/apis/iam/v1alpha1/zz_usergroupmembership_types.go @@ -40,11 +40,6 @@ type UserGroupMembershipParameters struct { // +kubebuilder:validation:Optional GroupsSelector *v1.Selector `json:"groupsSelector,omitempty" tf:"-"` - // Region is the region you'd like your resource to be created in. - // +terrajet:crd:field:TFTag=- - // +kubebuilder:validation:Required - Region *string `json:"region" tf:"-"` - // +crossplane:generate:reference:type=User // +kubebuilder:validation:Optional User *string `json:"user,omitempty" tf:"user,omitempty"` diff --git a/apis/iam/v1alpha1/zz_userpolicy_types.go b/apis/iam/v1alpha1/zz_userpolicy_types.go index 7e5598ada..abbece570 100755 --- a/apis/iam/v1alpha1/zz_userpolicy_types.go +++ b/apis/iam/v1alpha1/zz_userpolicy_types.go @@ -39,11 +39,6 @@ type UserPolicyParameters struct { // +kubebuilder:validation:Required Policy *string `json:"policy" tf:"policy,omitempty"` - // Region is the region you'd like your resource to be created in. - // +terrajet:crd:field:TFTag=- - // +kubebuilder:validation:Required - Region *string `json:"region" tf:"-"` - // +crossplane:generate:reference:type=User // +kubebuilder:validation:Optional User *string `json:"user,omitempty" tf:"user,omitempty"` diff --git a/apis/iam/v1alpha1/zz_userpolicyattachment_types.go b/apis/iam/v1alpha1/zz_userpolicyattachment_types.go index 736db4f67..38ef4dcec 100755 --- a/apis/iam/v1alpha1/zz_userpolicyattachment_types.go +++ b/apis/iam/v1alpha1/zz_userpolicyattachment_types.go @@ -41,11 +41,6 @@ type UserPolicyAttachmentParameters struct { // +kubebuilder:validation:Optional PolicyArnSelector *v1.Selector `json:"policyArnSelector,omitempty" tf:"-"` - // Region is the region you'd like your resource to be created in. - // +terrajet:crd:field:TFTag=- - // +kubebuilder:validation:Required - Region *string `json:"region" tf:"-"` - // +crossplane:generate:reference:type=User // +kubebuilder:validation:Optional User *string `json:"user,omitempty" tf:"user,omitempty"` diff --git a/cmd/generator/main.go b/cmd/generator/main.go index 099432bdf..cb3b56f05 100644 --- a/cmd/generator/main.go +++ b/cmd/generator/main.go @@ -221,7 +221,9 @@ func main() { // nolint:gocyclo // We don't want Aws prefix in all kinds. kind := strcase.ToCamel(strings.TrimPrefix(strings.TrimPrefix(name, "aws_"), group)) resource := resources[name] - resource.Schema["region"] = regionSchema + if group != "iam" { + resource.Schema["region"] = regionSchema + } // tags_all is used only in tfstate to accumulate provider-wide // default tags in TF, which is not something we support. So, we don't // need it as a parameter while "tags" is already in place. diff --git a/examples/iam/accesskey.yaml b/examples/iam/accesskey.yaml index 660c2367e..1a83abc39 100644 --- a/examples/iam/accesskey.yaml +++ b/examples/iam/accesskey.yaml @@ -4,7 +4,6 @@ metadata: name: sample-access-key spec: forProvider: - region: "" userRef: name: sample-user writeConnectionSecretToRef: diff --git a/examples/iam/role.yaml b/examples/iam/role.yaml index 7cc60c440..44db71f78 100644 --- a/examples/iam/role.yaml +++ b/examples/iam/role.yaml @@ -4,7 +4,6 @@ metadata: name: sample-eks-cluster spec: forProvider: - region: "" assumeRolePolicy: | { "Version": "2012-10-17", diff --git a/examples/iam/rolepolicyattachment.yaml b/examples/iam/rolepolicyattachment.yaml index eebf75c94..36b625508 100644 --- a/examples/iam/rolepolicyattachment.yaml +++ b/examples/iam/rolepolicyattachment.yaml @@ -4,7 +4,6 @@ metadata: name: sample-cluster-policy spec: forProvider: - region: "" policyArn: arn:aws:iam::aws:policy/AmazonEKSClusterPolicy roleRef: name: sample-eks-cluster @@ -15,7 +14,6 @@ metadata: name: sample-vpc-resource-controller spec: forProvider: - region: "" policyArn: arn:aws:iam::aws:policy/AmazonEKSVPCResourceController roleRef: name: sample-eks-cluster \ No newline at end of file diff --git a/examples/iam/user.yaml b/examples/iam/user.yaml index 24c485fda..2ef702d09 100644 --- a/examples/iam/user.yaml +++ b/examples/iam/user.yaml @@ -3,7 +3,4 @@ kind: User metadata: name: sample-user spec: - forProvider: - region: "" - tags: - k1: v1 + forProvider: {} diff --git a/examples/iam/userpolicy.yaml b/examples/iam/userpolicy.yaml index 9c2e35f0d..39e324b74 100644 --- a/examples/iam/userpolicy.yaml +++ b/examples/iam/userpolicy.yaml @@ -4,7 +4,6 @@ metadata: name: sample-user-policy spec: forProvider: - region: "" userRef: name: sample-user policy: | diff --git a/internal/clients/aws.go b/internal/clients/aws.go index 74eb5849a..0a1898b45 100644 --- a/internal/clients/aws.go +++ b/internal/clients/aws.go @@ -101,5 +101,11 @@ func getRegion(obj runtime.Object) (string, error) { if err != nil { return "", errors.Wrap(err, "cannot convert to unstructured") } - return fieldpath.Pave(fromMap).GetString("spec.forProvider.region") + r, err := fieldpath.Pave(fromMap).GetString("spec.forProvider.region") + if fieldpath.IsNotFound(err) { + // Region is not required for all resources, e.g. resource in "iam" + // group. + return "", nil + } + return r, err } diff --git a/internal/controller/zz_setup.go b/internal/controller/zz_setup.go index 9a50a9c17..7f96369e9 100755 --- a/internal/controller/zz_setup.go +++ b/internal/controller/zz_setup.go @@ -53,7 +53,7 @@ import ( service "github.com/crossplane-contrib/provider-tf-aws/internal/controller/ecs/service" taskdefinition "github.com/crossplane-contrib/provider-tf-aws/internal/controller/ecs/taskdefinition" addon "github.com/crossplane-contrib/provider-tf-aws/internal/controller/eks/addon" - clustereks "github.com/crossplane-contrib/provider-tf-aws/internal/controller/eks/cluster" + cluster "github.com/crossplane-contrib/provider-tf-aws/internal/controller/eks/cluster" fargateprofile "github.com/crossplane-contrib/provider-tf-aws/internal/controller/eks/fargateprofile" identityproviderconfig "github.com/crossplane-contrib/provider-tf-aws/internal/controller/eks/identityproviderconfig" nodegroup "github.com/crossplane-contrib/provider-tf-aws/internal/controller/eks/nodegroup" @@ -79,7 +79,7 @@ import ( lbtargetgroup "github.com/crossplane-contrib/provider-tf-aws/internal/controller/lb/lbtargetgroup" lbtargetgroupattachment "github.com/crossplane-contrib/provider-tf-aws/internal/controller/lb/lbtargetgroupattachment" loadbalancer "github.com/crossplane-contrib/provider-tf-aws/internal/controller/lb/loadbalancer" - cluster "github.com/crossplane-contrib/provider-tf-aws/internal/controller/rds/cluster" + clusterrds "github.com/crossplane-contrib/provider-tf-aws/internal/controller/rds/cluster" dbinstance "github.com/crossplane-contrib/provider-tf-aws/internal/controller/rds/dbinstance" dbparametergroup "github.com/crossplane-contrib/provider-tf-aws/internal/controller/rds/dbparametergroup" bucket "github.com/crossplane-contrib/provider-tf-aws/internal/controller/s3/bucket" @@ -98,8 +98,8 @@ func Setup(mgr ctrl.Manager, l logging.Logger, wl workqueue.RateLimiter, ps terr capacityprovider.Setup, cluster.Setup, clusterecs.Setup, - clustereks.Setup, clusterelasticache.Setup, + clusterrds.Setup, dbinstance.Setup, dbparametergroup.Setup, ec2launchtemplate.Setup, diff --git a/package/crds/iam.aws.tf.crossplane.io_accesskeys.yaml b/package/crds/iam.aws.tf.crossplane.io_accesskeys.yaml index ab93de425..a5348ed8b 100644 --- a/package/crds/iam.aws.tf.crossplane.io_accesskeys.yaml +++ b/package/crds/iam.aws.tf.crossplane.io_accesskeys.yaml @@ -64,10 +64,6 @@ spec: properties: pgpKey: type: string - region: - description: Region is the region you'd like your resource to - be created in. - type: string status: type: string user: @@ -95,8 +91,6 @@ spec: is selected. type: object type: object - required: - - region type: object providerConfigRef: default: diff --git a/package/crds/iam.aws.tf.crossplane.io_grouppolicies.yaml b/package/crds/iam.aws.tf.crossplane.io_grouppolicies.yaml index 9f95f1262..3a00f635e 100644 --- a/package/crds/iam.aws.tf.crossplane.io_grouppolicies.yaml +++ b/package/crds/iam.aws.tf.crossplane.io_grouppolicies.yaml @@ -89,13 +89,8 @@ spec: type: object policy: type: string - region: - description: Region is the region you'd like your resource to - be created in. - type: string required: - policy - - region type: object providerConfigRef: default: diff --git a/package/crds/iam.aws.tf.crossplane.io_grouppolicyattachments.yaml b/package/crds/iam.aws.tf.crossplane.io_grouppolicyattachments.yaml index f2b5a5ff0..cfddac487 100644 --- a/package/crds/iam.aws.tf.crossplane.io_grouppolicyattachments.yaml +++ b/package/crds/iam.aws.tf.crossplane.io_grouppolicyattachments.yaml @@ -113,12 +113,6 @@ spec: is selected. type: object type: object - region: - description: Region is the region you'd like your resource to - be created in. - type: string - required: - - region type: object providerConfigRef: default: diff --git a/package/crds/iam.aws.tf.crossplane.io_iamgroups.yaml b/package/crds/iam.aws.tf.crossplane.io_iamgroups.yaml index d30bc02fc..924064dc0 100644 --- a/package/crds/iam.aws.tf.crossplane.io_iamgroups.yaml +++ b/package/crds/iam.aws.tf.crossplane.io_iamgroups.yaml @@ -64,12 +64,6 @@ spec: properties: path: type: string - region: - description: Region is the region you'd like your resource to - be created in. - type: string - required: - - region type: object providerConfigRef: default: diff --git a/package/crds/iam.aws.tf.crossplane.io_instanceprofiles.yaml b/package/crds/iam.aws.tf.crossplane.io_instanceprofiles.yaml index 23e253888..74ca66696 100644 --- a/package/crds/iam.aws.tf.crossplane.io_instanceprofiles.yaml +++ b/package/crds/iam.aws.tf.crossplane.io_instanceprofiles.yaml @@ -64,10 +64,6 @@ spec: properties: path: type: string - region: - description: Region is the region you'd like your resource to - be created in. - type: string role: type: string roleRef: @@ -97,8 +93,6 @@ spec: additionalProperties: type: string type: object - required: - - region type: object providerConfigRef: default: diff --git a/package/crds/iam.aws.tf.crossplane.io_policies.yaml b/package/crds/iam.aws.tf.crossplane.io_policies.yaml index a28bdb62d..aedb50397 100644 --- a/package/crds/iam.aws.tf.crossplane.io_policies.yaml +++ b/package/crds/iam.aws.tf.crossplane.io_policies.yaml @@ -72,17 +72,12 @@ spec: type: string policy: type: string - region: - description: Region is the region you'd like your resource to - be created in. - type: string tags: additionalProperties: type: string type: object required: - policy - - region type: object providerConfigRef: default: diff --git a/package/crds/iam.aws.tf.crossplane.io_policyattachments.yaml b/package/crds/iam.aws.tf.crossplane.io_policyattachments.yaml index 316a9ed53..f299b0bf3 100644 --- a/package/crds/iam.aws.tf.crossplane.io_policyattachments.yaml +++ b/package/crds/iam.aws.tf.crossplane.io_policyattachments.yaml @@ -118,10 +118,6 @@ spec: is selected. type: object type: object - region: - description: Region is the region you'd like your resource to - be created in. - type: string roles: items: type: string @@ -182,7 +178,6 @@ spec: type: object required: - name - - region type: object providerConfigRef: default: diff --git a/package/crds/iam.aws.tf.crossplane.io_rolepolicies.yaml b/package/crds/iam.aws.tf.crossplane.io_rolepolicies.yaml index f2a133352..e85920f75 100644 --- a/package/crds/iam.aws.tf.crossplane.io_rolepolicies.yaml +++ b/package/crds/iam.aws.tf.crossplane.io_rolepolicies.yaml @@ -64,15 +64,10 @@ spec: properties: policy: type: string - region: - description: Region is the region you'd like your resource to - be created in. - type: string role: type: string required: - policy - - region - role type: object providerConfigRef: diff --git a/package/crds/iam.aws.tf.crossplane.io_rolepolicyattachments.yaml b/package/crds/iam.aws.tf.crossplane.io_rolepolicyattachments.yaml index d36abede5..8c42a1a69 100644 --- a/package/crds/iam.aws.tf.crossplane.io_rolepolicyattachments.yaml +++ b/package/crds/iam.aws.tf.crossplane.io_rolepolicyattachments.yaml @@ -88,10 +88,6 @@ spec: is selected. type: object type: object - region: - description: Region is the region you'd like your resource to - be created in. - type: string role: type: string roleRef: @@ -117,8 +113,6 @@ spec: is selected. type: object type: object - required: - - region type: object providerConfigRef: default: diff --git a/package/crds/iam.aws.tf.crossplane.io_roles.yaml b/package/crds/iam.aws.tf.crossplane.io_roles.yaml index b54dfb617..aeff67816 100644 --- a/package/crds/iam.aws.tf.crossplane.io_roles.yaml +++ b/package/crds/iam.aws.tf.crossplane.io_roles.yaml @@ -88,17 +88,12 @@ spec: type: string permissionsBoundary: type: string - region: - description: Region is the region you'd like your resource to - be created in. - type: string tags: additionalProperties: type: string type: object required: - assumeRolePolicy - - region type: object providerConfigRef: default: diff --git a/package/crds/iam.aws.tf.crossplane.io_usergroupmemberships.yaml b/package/crds/iam.aws.tf.crossplane.io_usergroupmemberships.yaml index a73749a00..bd937a3d2 100644 --- a/package/crds/iam.aws.tf.crossplane.io_usergroupmemberships.yaml +++ b/package/crds/iam.aws.tf.crossplane.io_usergroupmemberships.yaml @@ -92,10 +92,6 @@ spec: is selected. type: object type: object - region: - description: Region is the region you'd like your resource to - be created in. - type: string user: type: string userRef: @@ -121,8 +117,6 @@ spec: is selected. type: object type: object - required: - - region type: object providerConfigRef: default: diff --git a/package/crds/iam.aws.tf.crossplane.io_userpolicies.yaml b/package/crds/iam.aws.tf.crossplane.io_userpolicies.yaml index 86b4ef8ab..14f692b4a 100644 --- a/package/crds/iam.aws.tf.crossplane.io_userpolicies.yaml +++ b/package/crds/iam.aws.tf.crossplane.io_userpolicies.yaml @@ -68,10 +68,6 @@ spec: type: string policy: type: string - region: - description: Region is the region you'd like your resource to - be created in. - type: string user: type: string userRef: @@ -99,7 +95,6 @@ spec: type: object required: - policy - - region type: object providerConfigRef: default: diff --git a/package/crds/iam.aws.tf.crossplane.io_userpolicyattachments.yaml b/package/crds/iam.aws.tf.crossplane.io_userpolicyattachments.yaml index c28cf88d4..016c64a09 100644 --- a/package/crds/iam.aws.tf.crossplane.io_userpolicyattachments.yaml +++ b/package/crds/iam.aws.tf.crossplane.io_userpolicyattachments.yaml @@ -88,10 +88,6 @@ spec: is selected. type: object type: object - region: - description: Region is the region you'd like your resource to - be created in. - type: string user: type: string userRef: @@ -117,8 +113,6 @@ spec: is selected. type: object type: object - required: - - region type: object providerConfigRef: default: diff --git a/package/crds/iam.aws.tf.crossplane.io_users.yaml b/package/crds/iam.aws.tf.crossplane.io_users.yaml index ac0a01978..41c3c52a3 100644 --- a/package/crds/iam.aws.tf.crossplane.io_users.yaml +++ b/package/crds/iam.aws.tf.crossplane.io_users.yaml @@ -70,16 +70,10 @@ spec: type: string permissionsBoundary: type: string - region: - description: Region is the region you'd like your resource to - be created in. - type: string tags: additionalProperties: type: string type: object - required: - - region type: object providerConfigRef: default: