%global _empty_manifest_terminate_build 0 Name: python-cdk-keycloak Version: 2.7.1 Release: 1 Summary: CDK construct library that allows you to create KeyCloak service on AWS in TypeScript or Python License: Apache-2.0 URL: https://github.com/aws-samples/cdk-keycloak.git Source0: https://mirrors.nju.edu.cn/pypi/web/packages/fd/6c/6a76b14652c8fc21de4c53c3ae939b6e484c1f4cdc3969124a876cd9d060/cdk-keycloak-2.7.1.tar.gz BuildArch: noarch Requires: python3-aws-cdk-lib Requires: python3-constructs Requires: python3-jsii Requires: python3-publication Requires: python3-typeguard %description [![NPM version](https://badge.fury.io/js/cdk-keycloak.svg)](https://badge.fury.io/js/cdk-keycloak) [![PyPI version](https://badge.fury.io/py/cdk-keycloak.svg)](https://badge.fury.io/py/cdk-keycloak) ![Release](https://github.com/aws-samples/cdk-keycloak/workflows/Release/badge.svg?branch=main) # `cdk-keycloak` CDK construct library that allows you to create [KeyCloak](https://www.keycloak.org/) on AWS in TypeScript or Python > **Note** > > This project has been migrated to CDK v2. > > CDK v1 compatible version is deprecated now. # Sample ```python import { KeyCloak } from 'cdk-keycloak'; const app = new cdk.App(); const env = { region: process.env.CDK_DEFAULT_REGION, account: process.env.CDK_DEFAULT_ACCOUNT, }; const stack = new cdk.Stack(app, 'keycloak-demo', { env }); new KeyCloak(stack, 'KeyCloak', { certificateArn: 'arn:aws:acm:us-east-1:123456789012:certificate/293cf875-ca98-4c2e-a797-e1cf6df2553c', keycloakVersion, }); ``` # Keycloak version pinning Use `keycloakVersion` to specify the version. ```python new KeyCloak(stack, 'KeyCloak', { certificateArn, keycloakVersion: KeycloakVersion.V15_0_2, }); ``` To specify any other verion not defined in the construct, use `KeycloakVersion.of('x.x.x')`. This allows you to specify any new version as soon as it's available. However, as new versions will not always be tested and validated with this construct library, make sure you fully backup and test before you use any new version in the production environment. # Aurora Serverless support The `KeyCloak` construct provisions the **Amaozn RDS cluster for MySQL** with **2** database instances under the hood, to opt in **Amazon Aurora Serverless**, use `auroraServerless` to opt in Amazon Aurora Serverless cluster. Please note only some regions are supported, check [Supported features in Amazon Aurora by AWS Region and Aurora DB engine](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.AuroraFeaturesRegionsDBEngines.grids.html) for availability. ```python // Aurora Serverless v1 new KeyCloak(stack, 'KeyCloak', { certificateArn, auroraServerless: true, keycloakVersion, }); // Aurora Serverless v2 new KeyCloak(stack, 'KeyCloak', { certificateArn, auroraServerlessV2: true, keycloakVersion, }); ``` Behind the scene, a default RDS cluster for MySQL with 2 database instances will be created. # Opt-in for Single RDS instance To create single RDS instance for your testing or development environment, use `singleDbInstance` to turn on the single db instance deployment. Plesae note this is not recommended for production environment. ```python new KeyCloak(stack, 'KeyCloak', { certificateArn, singleDbInstance: true, keycloakVersion, }); ``` # Service Auto Scaling Define `autoScaleTask` for the ecs service task autoscaling. For example: ```python new KeyCloak(stack, 'KeyCloak', { auroraServerless: true, nodeCount: 2, autoScaleTask: { min: 2, max: 10, targetCpuUtilization: 60, }, }); ``` # Deploy in existing Vpc Subnets You can deploy the workload in the existing Vpc and subnets. The `publicSubnets` are for the ALB, `privateSubnets` for the keycloak container tasks and `databaseSubnets` for the database. The best practice is to specify isolated subnets for `databaseSubnets`, however, in some cases might have no existing isolates subnets then the private subnets are also acceptable. Consider the sample below: ```python new KeyCloak(stack, 'KeyCloak', { certificateArn: 'arn:aws:acm:us-east-1:123456789012:certificate/293cf875-ca98-4c2e-a797-e1cf6df2553c', vpc: ec2.Vpc.fromLookup(stack, 'Vpc', { vpcId: 'vpc-0417e46d' }), publicSubnets: { subnets: [ ec2.Subnet.fromSubnetId(stack, 'pub-1a', 'subnet-5bbe7b32'), ec2.Subnet.fromSubnetId(stack, 'pub-1b', 'subnet-0428367c'), ec2.Subnet.fromSubnetId(stack, 'pub-1c', 'subnet-1586a75f'), ], }, privateSubnets: { subnets: [ ec2.Subnet.fromSubnetId(stack, 'priv-1a', 'subnet-0e9460dbcfc4cf6ee'), ec2.Subnet.fromSubnetId(stack, 'priv-1b', 'subnet-0562f666bdf5c29af'), ec2.Subnet.fromSubnetId(stack, 'priv-1c', 'subnet-00ab15c0022872f06'), ], }, databaseSubnets: { subnets: [ ec2.Subnet.fromSubnetId(stack, 'db-1a', 'subnet-0e9460dbcfc4cf6ee'), ec2.Subnet.fromSubnetId(stack, 'db-1b', 'subnet-0562f666bdf5c29af'), ec2.Subnet.fromSubnetId(stack, 'db-1c', 'subnet-00ab15c0022872f06'), ], }, }); ``` # AWS China Regions This library support AWS China regions `cn-north-1` and `cn-northwest-1` and will auto select local docker image mirror to accelerate the image pulling. You don't have to do anything. ## Security See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information. ## License This project is licensed under the Apache-2.0 License. %package -n python3-cdk-keycloak Summary: CDK construct library that allows you to create KeyCloak service on AWS in TypeScript or Python Provides: python-cdk-keycloak BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-cdk-keycloak [![NPM version](https://badge.fury.io/js/cdk-keycloak.svg)](https://badge.fury.io/js/cdk-keycloak) [![PyPI version](https://badge.fury.io/py/cdk-keycloak.svg)](https://badge.fury.io/py/cdk-keycloak) ![Release](https://github.com/aws-samples/cdk-keycloak/workflows/Release/badge.svg?branch=main) # `cdk-keycloak` CDK construct library that allows you to create [KeyCloak](https://www.keycloak.org/) on AWS in TypeScript or Python > **Note** > > This project has been migrated to CDK v2. > > CDK v1 compatible version is deprecated now. # Sample ```python import { KeyCloak } from 'cdk-keycloak'; const app = new cdk.App(); const env = { region: process.env.CDK_DEFAULT_REGION, account: process.env.CDK_DEFAULT_ACCOUNT, }; const stack = new cdk.Stack(app, 'keycloak-demo', { env }); new KeyCloak(stack, 'KeyCloak', { certificateArn: 'arn:aws:acm:us-east-1:123456789012:certificate/293cf875-ca98-4c2e-a797-e1cf6df2553c', keycloakVersion, }); ``` # Keycloak version pinning Use `keycloakVersion` to specify the version. ```python new KeyCloak(stack, 'KeyCloak', { certificateArn, keycloakVersion: KeycloakVersion.V15_0_2, }); ``` To specify any other verion not defined in the construct, use `KeycloakVersion.of('x.x.x')`. This allows you to specify any new version as soon as it's available. However, as new versions will not always be tested and validated with this construct library, make sure you fully backup and test before you use any new version in the production environment. # Aurora Serverless support The `KeyCloak` construct provisions the **Amaozn RDS cluster for MySQL** with **2** database instances under the hood, to opt in **Amazon Aurora Serverless**, use `auroraServerless` to opt in Amazon Aurora Serverless cluster. Please note only some regions are supported, check [Supported features in Amazon Aurora by AWS Region and Aurora DB engine](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.AuroraFeaturesRegionsDBEngines.grids.html) for availability. ```python // Aurora Serverless v1 new KeyCloak(stack, 'KeyCloak', { certificateArn, auroraServerless: true, keycloakVersion, }); // Aurora Serverless v2 new KeyCloak(stack, 'KeyCloak', { certificateArn, auroraServerlessV2: true, keycloakVersion, }); ``` Behind the scene, a default RDS cluster for MySQL with 2 database instances will be created. # Opt-in for Single RDS instance To create single RDS instance for your testing or development environment, use `singleDbInstance` to turn on the single db instance deployment. Plesae note this is not recommended for production environment. ```python new KeyCloak(stack, 'KeyCloak', { certificateArn, singleDbInstance: true, keycloakVersion, }); ``` # Service Auto Scaling Define `autoScaleTask` for the ecs service task autoscaling. For example: ```python new KeyCloak(stack, 'KeyCloak', { auroraServerless: true, nodeCount: 2, autoScaleTask: { min: 2, max: 10, targetCpuUtilization: 60, }, }); ``` # Deploy in existing Vpc Subnets You can deploy the workload in the existing Vpc and subnets. The `publicSubnets` are for the ALB, `privateSubnets` for the keycloak container tasks and `databaseSubnets` for the database. The best practice is to specify isolated subnets for `databaseSubnets`, however, in some cases might have no existing isolates subnets then the private subnets are also acceptable. Consider the sample below: ```python new KeyCloak(stack, 'KeyCloak', { certificateArn: 'arn:aws:acm:us-east-1:123456789012:certificate/293cf875-ca98-4c2e-a797-e1cf6df2553c', vpc: ec2.Vpc.fromLookup(stack, 'Vpc', { vpcId: 'vpc-0417e46d' }), publicSubnets: { subnets: [ ec2.Subnet.fromSubnetId(stack, 'pub-1a', 'subnet-5bbe7b32'), ec2.Subnet.fromSubnetId(stack, 'pub-1b', 'subnet-0428367c'), ec2.Subnet.fromSubnetId(stack, 'pub-1c', 'subnet-1586a75f'), ], }, privateSubnets: { subnets: [ ec2.Subnet.fromSubnetId(stack, 'priv-1a', 'subnet-0e9460dbcfc4cf6ee'), ec2.Subnet.fromSubnetId(stack, 'priv-1b', 'subnet-0562f666bdf5c29af'), ec2.Subnet.fromSubnetId(stack, 'priv-1c', 'subnet-00ab15c0022872f06'), ], }, databaseSubnets: { subnets: [ ec2.Subnet.fromSubnetId(stack, 'db-1a', 'subnet-0e9460dbcfc4cf6ee'), ec2.Subnet.fromSubnetId(stack, 'db-1b', 'subnet-0562f666bdf5c29af'), ec2.Subnet.fromSubnetId(stack, 'db-1c', 'subnet-00ab15c0022872f06'), ], }, }); ``` # AWS China Regions This library support AWS China regions `cn-north-1` and `cn-northwest-1` and will auto select local docker image mirror to accelerate the image pulling. You don't have to do anything. ## Security See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information. ## License This project is licensed under the Apache-2.0 License. %package help Summary: Development documents and examples for cdk-keycloak Provides: python3-cdk-keycloak-doc %description help [![NPM version](https://badge.fury.io/js/cdk-keycloak.svg)](https://badge.fury.io/js/cdk-keycloak) [![PyPI version](https://badge.fury.io/py/cdk-keycloak.svg)](https://badge.fury.io/py/cdk-keycloak) ![Release](https://github.com/aws-samples/cdk-keycloak/workflows/Release/badge.svg?branch=main) # `cdk-keycloak` CDK construct library that allows you to create [KeyCloak](https://www.keycloak.org/) on AWS in TypeScript or Python > **Note** > > This project has been migrated to CDK v2. > > CDK v1 compatible version is deprecated now. # Sample ```python import { KeyCloak } from 'cdk-keycloak'; const app = new cdk.App(); const env = { region: process.env.CDK_DEFAULT_REGION, account: process.env.CDK_DEFAULT_ACCOUNT, }; const stack = new cdk.Stack(app, 'keycloak-demo', { env }); new KeyCloak(stack, 'KeyCloak', { certificateArn: 'arn:aws:acm:us-east-1:123456789012:certificate/293cf875-ca98-4c2e-a797-e1cf6df2553c', keycloakVersion, }); ``` # Keycloak version pinning Use `keycloakVersion` to specify the version. ```python new KeyCloak(stack, 'KeyCloak', { certificateArn, keycloakVersion: KeycloakVersion.V15_0_2, }); ``` To specify any other verion not defined in the construct, use `KeycloakVersion.of('x.x.x')`. This allows you to specify any new version as soon as it's available. However, as new versions will not always be tested and validated with this construct library, make sure you fully backup and test before you use any new version in the production environment. # Aurora Serverless support The `KeyCloak` construct provisions the **Amaozn RDS cluster for MySQL** with **2** database instances under the hood, to opt in **Amazon Aurora Serverless**, use `auroraServerless` to opt in Amazon Aurora Serverless cluster. Please note only some regions are supported, check [Supported features in Amazon Aurora by AWS Region and Aurora DB engine](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.AuroraFeaturesRegionsDBEngines.grids.html) for availability. ```python // Aurora Serverless v1 new KeyCloak(stack, 'KeyCloak', { certificateArn, auroraServerless: true, keycloakVersion, }); // Aurora Serverless v2 new KeyCloak(stack, 'KeyCloak', { certificateArn, auroraServerlessV2: true, keycloakVersion, }); ``` Behind the scene, a default RDS cluster for MySQL with 2 database instances will be created. # Opt-in for Single RDS instance To create single RDS instance for your testing or development environment, use `singleDbInstance` to turn on the single db instance deployment. Plesae note this is not recommended for production environment. ```python new KeyCloak(stack, 'KeyCloak', { certificateArn, singleDbInstance: true, keycloakVersion, }); ``` # Service Auto Scaling Define `autoScaleTask` for the ecs service task autoscaling. For example: ```python new KeyCloak(stack, 'KeyCloak', { auroraServerless: true, nodeCount: 2, autoScaleTask: { min: 2, max: 10, targetCpuUtilization: 60, }, }); ``` # Deploy in existing Vpc Subnets You can deploy the workload in the existing Vpc and subnets. The `publicSubnets` are for the ALB, `privateSubnets` for the keycloak container tasks and `databaseSubnets` for the database. The best practice is to specify isolated subnets for `databaseSubnets`, however, in some cases might have no existing isolates subnets then the private subnets are also acceptable. Consider the sample below: ```python new KeyCloak(stack, 'KeyCloak', { certificateArn: 'arn:aws:acm:us-east-1:123456789012:certificate/293cf875-ca98-4c2e-a797-e1cf6df2553c', vpc: ec2.Vpc.fromLookup(stack, 'Vpc', { vpcId: 'vpc-0417e46d' }), publicSubnets: { subnets: [ ec2.Subnet.fromSubnetId(stack, 'pub-1a', 'subnet-5bbe7b32'), ec2.Subnet.fromSubnetId(stack, 'pub-1b', 'subnet-0428367c'), ec2.Subnet.fromSubnetId(stack, 'pub-1c', 'subnet-1586a75f'), ], }, privateSubnets: { subnets: [ ec2.Subnet.fromSubnetId(stack, 'priv-1a', 'subnet-0e9460dbcfc4cf6ee'), ec2.Subnet.fromSubnetId(stack, 'priv-1b', 'subnet-0562f666bdf5c29af'), ec2.Subnet.fromSubnetId(stack, 'priv-1c', 'subnet-00ab15c0022872f06'), ], }, databaseSubnets: { subnets: [ ec2.Subnet.fromSubnetId(stack, 'db-1a', 'subnet-0e9460dbcfc4cf6ee'), ec2.Subnet.fromSubnetId(stack, 'db-1b', 'subnet-0562f666bdf5c29af'), ec2.Subnet.fromSubnetId(stack, 'db-1c', 'subnet-00ab15c0022872f06'), ], }, }); ``` # AWS China Regions This library support AWS China regions `cn-north-1` and `cn-northwest-1` and will auto select local docker image mirror to accelerate the image pulling. You don't have to do anything. ## Security See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information. ## License This project is licensed under the Apache-2.0 License. %prep %autosetup -n cdk-keycloak-2.7.1 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-cdk-keycloak -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Fri May 05 2023 Python_Bot - 2.7.1-1 - Package Spec generated