Код: Выделить всё
from aws_cdk import (
Duration,
Stack,
aws_redshift_alpha as redshift
)
redshift_cluster = redshift.Cluster.from_cluster_attributes(
self, "RedshiftCluster",
cluster_name=self.config["redshift_cluster"],
cluster_endpoint_address=self.config["redshift_cluster_endpoint_address"],
cluster_endpoint_port=self.config["redshift_cluster_endpoint_port"]
)
redshift_cluster.add_iam_role(redshift_lambda_iam_role)
AttributeError: '+' у объекта нет атрибута 'add_iam_role'
Обратите внимание, что я не создает кластер Redshift в этом стеке и хочет просто сослаться на уже созданный кластер, чтобы просто добавить к нему новую роль IAM. Любые предложения о том, как этого добиться? Спасибо!
Подробнее здесь: https://stackoverflow.com/questions/798 ... in-aws-cdk
Мобильная версия