Is there any way that I can force deploy ?
# help
m
Is there any way that I can force deploy ?
f
Hey @Mehmet Ali SARAÇ, can you try this: • change
@aws-cdk/aws-iot
to
@aws-cdk/aws-iot-alpha
in package.json and the import in ur code • change
@aws-cdk/aws-kinesisfirehose
to
@aws-cdk/aws-kinesisfirehose-alpha
in package.json and the import in ur code • run
npx sst update 0.60.4
Then you can deploy. Might be a good idea to run
sst diff
before u deploy to ensure no major since from the upgrade.
m
oh thats not gonna work for me @Frank. I'm using the cfn-resources that are not exists in the alpha packets.
f
If you are using the
Cfn
constructs for both IoT and Kinesis Firehose, you don’t need
@aws-cdk/aws-iot
and
@aws-cdk/aws-kinesisfirehose
. The
Cfn
constructs are inside
aws-cdk-lib
.
For example:
Copy code
import {
  aws_iot as iot,
  aws_kinesisfirehose as kinesisfirehose,
} from 'aws-cdk-lib';

new iot.CfnThing(this, 'MyThing', ...);

new kinesisfirehose.CfnDeliveryStream(this, 'MyStream', ...);
It’s a bit confusing how CDK v2 has things structures. All
Cfn
constructs are considered stable. So all stable constructs are all within
aws-cdk-lib
And there are these higher level experimental constructs, each is abstracted out to their own packages. So if you want to use the high level Firehose Kinesis construct, you’d do:
Copy code
import kinesisfirehose from "@aws-cdk/aws-kinesisfirehose-alpha";

new firehose.DeliveryStream(this, 'MyStream', ...);
Let me know if that makes sense.