Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Generate example manifests
Browse files Browse the repository at this point in the history
Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
  • Loading branch information
ulucinar committed Dec 21, 2021
1 parent c045bae commit d3c4a0b
Show file tree
Hide file tree
Showing 751 changed files with 11,188 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples-generated/accessanalyzer/analyzer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: accessanalyzer.aws.jet.crossplane.io/v1alpha1
kind: Analyzer
metadata:
name: example
spec:
forProvider:
analyzerName: example
providerConfigRef:
name: example
14 changes: 14 additions & 0 deletions examples-generated/acm/certificate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: acm.aws.jet.crossplane.io/v1alpha1
kind: Certificate
metadata:
name: example
spec:
forProvider:
domainName: example.com
lifecycle:
- create_before_destroy: true
tags:
Environment: test
validationMethod: DNS
providerConfigRef:
name: example
10 changes: 10 additions & 0 deletions examples-generated/acm/certificatevalidation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: acm.aws.jet.crossplane.io/v1alpha1
kind: CertificateValidation
metadata:
name: example
spec:
forProvider:
certificateArn: ${aws_acm_certificate.example.arn}
validationRecordFqdns: '${[for record in aws_route53_record.example : record.fqdn]}'
providerConfigRef:
name: example
14 changes: 14 additions & 0 deletions examples-generated/acmpca/certificate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: acmpca.aws.jet.crossplane.io/v1alpha1
kind: Certificate
metadata:
name: example
spec:
forProvider:
certificateAuthorityArn: ${aws_acmpca_certificate_authority.example.arn}
certificateSigningRequest: ${tls_cert_request.csr.cert_request_pem}
signingAlgorithm: SHA256WITHRSA
validity:
- type: YEARS
value: 1
providerConfigRef:
name: example
14 changes: 14 additions & 0 deletions examples-generated/acmpca/certificateauthority.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: acmpca.aws.jet.crossplane.io/v1alpha1
kind: CertificateAuthority
metadata:
name: example
spec:
forProvider:
certificateAuthorityConfiguration:
- keyAlgorithm: RSA_4096
signingAlgorithm: SHA512WITHRSA
subject:
- commonName: example.com
permanentDeletionTimeInDays: 7
providerConfigRef:
name: example
11 changes: 11 additions & 0 deletions examples-generated/acmpca/certificateauthoritycertificate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: acmpca.aws.jet.crossplane.io/v1alpha1
kind: CertificateAuthorityCertificate
metadata:
name: example
spec:
forProvider:
certificate: ${aws_acmpca_certificate.example.certificate}
certificateAuthorityArn: ${aws_acmpca_certificate_authority.example.arn}
certificateChain: ${aws_acmpca_certificate.example.certificate_chain}
providerConfigRef:
name: example
14 changes: 14 additions & 0 deletions examples-generated/ami/copy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: ami.aws.jet.crossplane.io/v1alpha1
kind: Copy
metadata:
name: example
spec:
forProvider:
description: A copy of ami-xxxxxxxx
name: terraform-example
sourceAmiId: ami-xxxxxxxx
sourceAmiRegion: us-west-1
tags:
Name: HelloWorld
providerConfigRef:
name: example
10 changes: 10 additions & 0 deletions examples-generated/ami/frominstance.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: ami.aws.jet.crossplane.io/v1alpha1
kind: FromInstance
metadata:
name: example
spec:
forProvider:
name: terraform-example
sourceInstanceId: i-xxxxxxxx
providerConfigRef:
name: example
10 changes: 10 additions & 0 deletions examples-generated/ami/launchpermission.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: ami.aws.jet.crossplane.io/v1alpha1
kind: LaunchPermission
metadata:
name: example
spec:
forProvider:
accountId: "123456789012"
imageId: ami-12345678
providerConfigRef:
name: example
33 changes: 33 additions & 0 deletions examples-generated/amplify/app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: amplify.aws.jet.crossplane.io/v1alpha1
kind: App
metadata:
name: example
spec:
forProvider:
buildSpec: |
version: 0.1
frontend:
phases:
preBuild:
commands:
- yarn install
build:
commands:
- yarn run build
artifacts:
baseDirectory: build
files:
- '**/*'
cache:
paths:
- node_modules/**/*
customRule:
- source: /<*>
status: "404"
target: /index.html
environmentVariables:
ENV: test
name: example
repository: https://github.com/example/app
providerConfigRef:
name: example
12 changes: 12 additions & 0 deletions examples-generated/amplify/backendenvironment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: amplify.aws.jet.crossplane.io/v1alpha1
kind: BackendEnvironment
metadata:
name: example
spec:
forProvider:
appId: ${aws_amplify_app.example.id}
deploymentArtifacts: app-example-deployment
environmentName: example
stackName: amplify-app-example
providerConfigRef:
name: example
14 changes: 14 additions & 0 deletions examples-generated/amplify/branch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: amplify.aws.jet.crossplane.io/v1alpha1
kind: Branch
metadata:
name: example
spec:
forProvider:
appId: ${aws_amplify_app.example.id}
branchName: master
environmentVariables:
REACT_APP_API_SERVER: https://api.example.com
framework: React
stage: PRODUCTION
providerConfigRef:
name: example
15 changes: 15 additions & 0 deletions examples-generated/amplify/domainassociation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: amplify.aws.jet.crossplane.io/v1alpha1
kind: DomainAssociation
metadata:
name: example
spec:
forProvider:
appId: ${aws_amplify_app.example.id}
domainName: example.com
subDomain:
- branchName: ${aws_amplify_branch.master.branch_name}
prefix: ""
- branchName: ${aws_amplify_branch.master.branch_name}
prefix: www
providerConfigRef:
name: example
11 changes: 11 additions & 0 deletions examples-generated/amplify/webhook.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: amplify.aws.jet.crossplane.io/v1alpha1
kind: Webhook
metadata:
name: example
spec:
forProvider:
appId: ${aws_amplify_app.example.id}
branchName: ${aws_amplify_branch.master.branch_name}
description: triggermaster
providerConfigRef:
name: example
9 changes: 9 additions & 0 deletions examples-generated/api/gatewayaccount.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: api.aws.jet.crossplane.io/v1alpha1
kind: GatewayAccount
metadata:
name: example
spec:
forProvider:
cloudwatchRoleArn: ${aws_iam_role.cloudwatch.arn}
providerConfigRef:
name: example
9 changes: 9 additions & 0 deletions examples-generated/api/gatewayapikey.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: api.aws.jet.crossplane.io/v1alpha1
kind: GatewayApiKey
metadata:
name: example
spec:
forProvider:
name: demo
providerConfigRef:
name: example
12 changes: 12 additions & 0 deletions examples-generated/api/gatewayauthorizer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: api.aws.jet.crossplane.io/v1alpha1
kind: GatewayAuthorizer
metadata:
name: example
spec:
forProvider:
authorizerCredentials: ${aws_iam_role.invocation_role.arn}
authorizerUri: ${aws_lambda_function.authorizer.invoke_arn}
name: demo
restApiId: ${aws_api_gateway_rest_api.demo.id}
providerConfigRef:
name: example
11 changes: 11 additions & 0 deletions examples-generated/api/gatewaybasepathmapping.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: api.aws.jet.crossplane.io/v1alpha1
kind: GatewayBasePathMapping
metadata:
name: example
spec:
forProvider:
apiId: ${aws_api_gateway_rest_api.example.id}
domainName: ${aws_api_gateway_domain_name.example.domain_name}
stageName: ${aws_api_gateway_stage.example.stage_name}
providerConfigRef:
name: example
9 changes: 9 additions & 0 deletions examples-generated/api/gatewayclientcertificate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: api.aws.jet.crossplane.io/v1alpha1
kind: GatewayClientCertificate
metadata:
name: example
spec:
forProvider:
description: My client certificate
providerConfigRef:
name: example
13 changes: 13 additions & 0 deletions examples-generated/api/gatewaydeployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: api.aws.jet.crossplane.io/v1alpha1
kind: GatewayDeployment
metadata:
name: example
spec:
forProvider:
lifecycle:
- create_before_destroy: true
restApiId: ${aws_api_gateway_rest_api.example.id}
triggers:
redeployment: ${sha1(jsonencode(aws_api_gateway_rest_api.example.body))}
providerConfigRef:
name: example
14 changes: 14 additions & 0 deletions examples-generated/api/gatewaydocumentationpart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: api.aws.jet.crossplane.io/v1alpha1
kind: GatewayDocumentationPart
metadata:
name: example
spec:
forProvider:
location:
- method: GET
path: /example
type: METHOD
properties: '{"description":"Example description"}'
restApiId: ${aws_api_gateway_rest_api.example.id}
providerConfigRef:
name: example
13 changes: 13 additions & 0 deletions examples-generated/api/gatewaydocumentationversion.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: api.aws.jet.crossplane.io/v1alpha1
kind: GatewayDocumentationVersion
metadata:
name: example
spec:
forProvider:
depends_on:
- ${aws_api_gateway_documentation_part.example}
description: Example description
restApiId: ${aws_api_gateway_rest_api.example.id}
version: example_version
providerConfigRef:
name: example
10 changes: 10 additions & 0 deletions examples-generated/api/gatewaydomainname.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: api.aws.jet.crossplane.io/v1alpha1
kind: GatewayDomainName
metadata:
name: example
spec:
forProvider:
certificateArn: ${aws_acm_certificate_validation.example.certificate_arn}
domainName: api.example.com
providerConfigRef:
name: example
15 changes: 15 additions & 0 deletions examples-generated/api/gatewaygatewayresponse.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: api.aws.jet.crossplane.io/v1alpha1
kind: GatewayGatewayResponse
metadata:
name: example
spec:
forProvider:
responseParameters:
gatewayresponse.header.Authorization: '''Basic'''
responseTemplates:
application/json: '{"message":$context.error.messageString}'
responseType: UNAUTHORIZED
restApiId: ${aws_api_gateway_rest_api.main.id}
statusCode: "401"
providerConfigRef:
name: example
23 changes: 23 additions & 0 deletions examples-generated/api/gatewayintegration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: api.aws.jet.crossplane.io/v1alpha1
kind: GatewayIntegration
metadata:
name: example
spec:
forProvider:
cacheKeyParameters:
- method.request.path.param
cacheNamespace: foobar
httpMethod: ${aws_api_gateway_method.MyDemoMethod.http_method}
requestParameters:
integration.request.header.X-Authorization: '''static'''
requestTemplates:
application/xml: |
{
"body" : $input.json('$')
}
resourceId: ${aws_api_gateway_resource.MyDemoResource.id}
restApiId: ${aws_api_gateway_rest_api.MyDemoAPI.id}
timeoutMilliseconds: 29000
type: MOCK
providerConfigRef:
name: example
19 changes: 19 additions & 0 deletions examples-generated/api/gatewayintegrationresponse.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: api.aws.jet.crossplane.io/v1alpha1
kind: GatewayIntegrationResponse
metadata:
name: example
spec:
forProvider:
httpMethod: ${aws_api_gateway_method.MyDemoMethod.http_method}
resourceId: ${aws_api_gateway_resource.MyDemoResource.id}
responseTemplates:
application/xml: |
#set($inputRoot = $input.path('$'))
<?xml version="1.0" encoding="UTF-8"?>
<message>
$inputRoot.body
</message>
restApiId: ${aws_api_gateway_rest_api.MyDemoAPI.id}
statusCode: ${aws_api_gateway_method_response.response_200.status_code}
providerConfigRef:
name: example
12 changes: 12 additions & 0 deletions examples-generated/api/gatewaymethod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: api.aws.jet.crossplane.io/v1alpha1
kind: GatewayMethod
metadata:
name: example
spec:
forProvider:
authorization: NONE
httpMethod: GET
resourceId: ${aws_api_gateway_resource.MyDemoResource.id}
restApiId: ${aws_api_gateway_rest_api.MyDemoAPI.id}
providerConfigRef:
name: example
12 changes: 12 additions & 0 deletions examples-generated/api/gatewaymethodresponse.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: api.aws.jet.crossplane.io/v1alpha1
kind: GatewayMethodResponse
metadata:
name: example
spec:
forProvider:
httpMethod: ${aws_api_gateway_method.MyDemoMethod.http_method}
resourceId: ${aws_api_gateway_resource.MyDemoResource.id}
restApiId: ${aws_api_gateway_rest_api.MyDemoAPI.id}
statusCode: "200"
providerConfigRef:
name: example
Loading

0 comments on commit d3c4a0b

Please sign in to comment.