完了確認
「S3バケット"handson-cli-s3-replication-replication-source-XXXXXXXXXXXX"にレプリケーション設定が存在しない。」ことを確認します。
コマンド:
! aws s3api get-bucket-replication \
--bucket ${S3_BUCKET_SOURCE} \
--query 'ReplicationConfiguration.length(Rules)'
結果(例):
An error occurred (ReplicationConfigurationNotFoundError) when calling the GetBucketReplication operation: The replication configuration was not found