Some AWS resources are not availble via Cloudformation but can be managed via AWS API. One example is SES Domain Identity and Domain DKIM configuration.
It's easy to make API Calls using CDK. Check out the example below
#!/usr/bin/env node | |
import 'source-map-support/register'; | |
import * as cdk from 'aws-cdk-lib'; | |
import { DebugNightlyBuildStack, DebugNightlyBuildStackWithDependency, DebugNightlyBuildWithNestedStacks, DebugNightlyBuildWithNestedStacksWithDependency } from '../lib/debug-stack'; | |
const app = new cdk.App(); | |
new DebugNightlyBuildStack(app, 'DebugNightlyBuildStack'); // this one crashes on delete | |
new DebugNightlyBuildWithNestedStacks(app, "DebugNightlyBuildWithNestedStacks"); // this one crashes on delete | |
new DebugNightlyBuildStackWithDependency(app, "DebugNightlyBuildStackWithDependency"); // this one works | |
new DebugNightlyBuildWithNestedStacksWithDependency(app, "DebugNightlyBuildWithNestedStacksWithDependency"); // this one works |
from aws_cdk import core as cdk | |
from terraform_backend_stack import TerraformBackendStack | |
app = cdk.App() | |
TerraformBackendStack( | |
app, "TerraformBackendStack", description="Terraform S3 backend configuration" | |
) |
var pass = Math.random().toString(36).slice(-8); | |
console.log(pass); |
{ | |
"require": { | |
"zendframework/zend-mail": "^2.5" | |
} | |
} |
<?php | |
namespace MyNamespace\V1\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* OauthScopes | |
* | |
* @ORM\Table(name="oauth_scopes") |
{ | |
"require": { | |
"zendframework/zend-crypt":"dev-master" | |
} | |
} |
<?php | |
/** | |
* @license http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause | |
* @copyright Copyright (c) 2014 Zend Technologies USA Inc. (http://www.zend.com) | |
*/ | |
namespace Application; | |
use Zend\Mvc\ModuleRouteListener; | |
use Zend\Mvc\MvcEvent; |
<?php | |
namespace API\V1\Rest\Usuario; | |
use ZF\Apigility\Doctrine\Server\Resource\DoctrineResource; | |
use Oauth2; | |
use ZF\ApiProblem\ApiProblem; | |
use ZF\Rest\ResourceEvent; | |
class UsuarioResource extends DoctrineResource |
<?php | |
namespace Application\Controller; | |
use Zend\Mvc\Controller\AbstractActionController; | |
use Zend\View\Model\JsonModel; | |
use Zend\Soap\Client; | |
use Zend\Config\Reader\Xml; | |
class IndexController extends AbstractActionController |