In this section, we will re-use the cluster that was created in the earlier section for Grafana dashboard visualization and just update the Identity and Access Management (IAM) policies to enable full SNS access to the cluster.
You just need to update the additional_iam_policies section in the cluster configuration as follows:
sudo pip3 install iniparse
git clone https://github.com/pixelb/crudini.git
./crudini/crudini --set --list --existing ~/environment/my-perf-cluster-config.ini "cluster default" additional_iam_policies arn:aws:iam::aws:policy/AmazonSNSFullAccess
pcluster update perflab-yourname -c ~/environment/my-perf-cluster-config.ini
AWS ParallelCluster will validate the configuration update and ask for confirmation. Type “Y”. You should see an output as shown below:
Wait for your cluster to be updated with the new added policy.