Skip to content

Commit

Permalink
Merge pull request #690 from svscheg/issue505
Browse files Browse the repository at this point in the history
Fix for issue 505
  • Loading branch information
turkenh authored Jun 12, 2023
2 parents 3df2e87 + 83b9955 commit c0ff895
Show file tree
Hide file tree
Showing 16 changed files with 15 additions and 46 deletions.
12 changes: 2 additions & 10 deletions apis/ses/v1beta1/zz_domainidentity_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion apis/ses/v1beta1/zz_domainmailfrom_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions apis/ses/v1beta1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions apis/ses/v1beta1/zz_generated.resolvers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion apis/ses/v1beta1/zz_identitynotificationtopic_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion config/externalname.go
Original file line number Diff line number Diff line change
Expand Up @@ -2185,7 +2185,7 @@ var ExternalNameConfigs = map[string]config.ExternalName{
// DKIM tokens can be imported using the domain attribute
"aws_ses_domain_dkim": config.ParameterAsIdentifier("domain"),
// SES domain identities can be imported using the domain name.
"aws_ses_domain_identity": config.IdentifierFromProvider,
"aws_ses_domain_identity": config.ParameterAsIdentifier("domain"),
// MAIL FROM domain can be imported using the domain attribute
"aws_ses_domain_mail_from": config.IdentifierFromProvider,
// SES email identities can be imported using the email address.
Expand Down
1 change: 0 additions & 1 deletion examples-generated/ses/domaindkim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ metadata:
name: example
spec:
forProvider:
domain: example.com
region: us-west-1

---
Expand Down
1 change: 0 additions & 1 deletion examples-generated/ses/domainidentity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ metadata:
name: example
spec:
forProvider:
domain: example.com
region: us-west-1

---
Expand Down
3 changes: 1 addition & 2 deletions examples-generated/ses/domainmailfrom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
domainSelector:
matchLabels:
testing.upbound.io/example-name: example
mailFromDomain: example.com
mailFromDomain: bounce.${aws_ses_domain_identity.example.domain}
region: us-west-1

---
Expand Down Expand Up @@ -70,7 +70,6 @@ metadata:
name: example
spec:
forProvider:
domain: example.com
region: us-west-1

---
Expand Down
1 change: 0 additions & 1 deletion examples-generated/ses/identitypolicy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ metadata:
name: example
spec:
forProvider:
domain: example.com
region: us-west-1

---
Expand Down
3 changes: 2 additions & 1 deletion examples/ses/domaindkim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ kind: DomainDKIM
metadata:
annotations:
meta.upbound.io/example-id: ses/v1beta1/domaindkim
crossplane.io/external-name: testdomain.com
labels:
testing.upbound.io/example-name: example
name: example
name: exampledkim
spec:
forProvider:
region: us-east-1
4 changes: 2 additions & 2 deletions examples/ses/domainidentity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ kind: DomainIdentity
metadata:
annotations:
meta.upbound.io/example-id: ses/v1beta1/domainidentity
crossplane.io/external-name: testdomain.com
labels:
testing.upbound.io/example-name: example
name: example
name: examplename
spec:
forProvider:
domain: "example.com"
region: us-west-1
4 changes: 2 additions & 2 deletions examples/ses/domainmailfrom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
domainSelector:
matchLabels:
testing.upbound.io/example-name: example
mailFromDomain: "mail.example.com"
mailFromDomain: "mail.testdomain.com"
region: us-west-1

---
Expand All @@ -21,10 +21,10 @@ kind: DomainIdentity
metadata:
annotations:
meta.upbound.io/example-id: ses/v1beta1/domainmailfrom
crossplane.io/external-name: testdomain.com
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
domain: "example.com"
region: us-west-1
4 changes: 2 additions & 2 deletions examples/ses/identitypolicy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
"Principal": {
"AWS": "*"
},
"Resource": "arn:aws:ses:us-west-1:153891904029:identity/example.com",
"Resource": "arn:aws:ses:us-west-1:153891904029:identity/testdomain.com",
"Action": ["SES:SendEmail", "SES:SendRawEmail"]
}
]
Expand All @@ -35,10 +35,10 @@ kind: DomainIdentity
metadata:
annotations:
meta.upbound.io/example-id: ses/v1beta1/identitypolicy
crossplane.io/external-name: testdomain.com
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
domain: "example.com"
region: us-west-1
1 change: 1 addition & 0 deletions internal/controller/ses/domainidentity/zz_controller.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions package/crds/ses.aws.upbound.io_domainidentities.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ spec:
type: string
forProvider:
properties:
domain:
description: The domain name to assign to SES
type: string
region:
description: Region is the region you'd like your resource to
be created in.
Expand Down Expand Up @@ -264,9 +261,6 @@ spec:
required:
- forProvider
type: object
x-kubernetes-validations:
- message: domain is a required parameter
rule: self.managementPolicy == 'ObserveOnly' || has(self.forProvider.domain)
status:
description: DomainIdentityStatus defines the observed state of DomainIdentity.
properties:
Expand All @@ -275,9 +269,6 @@ spec:
arn:
description: The ARN of the domain identity.
type: string
domain:
description: The domain name to assign to SES
type: string
id:
type: string
verificationToken:
Expand Down

0 comments on commit c0ff895

Please sign in to comment.