mac – macOS Catalina on AWS: merging partitions

I have created a macOS Catalina EC2 instance on AWS with an EBS volume size of 60 GB.
Then I resized the volume on AWS to 120 GB and tried the following commands to resize the APFS container accordingly:

PDISK=$(diskutil list physical external | head -n1 | cut -d" " -f1)
APFSCONT=$(diskutil list physical external | grep "Apple_APFS" | tr -s " " | cut -d" " -f8)
yes | sudo diskutil repairDisk $PDISK
sudo diskutil apfs resizeContainer $APFSCONT 0

Unfortunately the last command gives me the following output:

Started APFS operation Error: -69743: The new size must be different
than the existing size

That’s the output of “diskutil list”:

Output of diskutil list on my macOS instance

I am not sure about what’s happening, but I am wondering, would it be possible to merge disk1 and disk0 into one disk? Without breaking the system, and where I could install applications as “normal”.

linux – sudo: aws: command not found

Installed aws cli 2 on my Centos machine. Added PATH=”/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin” to /etc/environment. Most of the cases aws command can be called successfully. However, when using ‘sudo aws’, it shows command not found. Below are all the scenarios. Any idea?

[centos@ip-172-20-x-x ~]$ aws --version
aws-cli/2.1.28 Python/3.8.8 Linux/3.10.0-1160.11.1.el7.x86_64 exe/x86_64.centos.7 prompt/off
[centos@ip-172-20-x-x ~]$ sudo su
[root@ip-172-20-x-x centos]# aws --version
aws-cli/2.1.28 Python/3.8.8 Linux/3.10.0-1160.11.1.el7.x86_64 exe/x86_64.centos.7 prompt/off
[root@ip-172-20-x-x centos]# sudo aws --version
sudo: aws: command not found
[root@ip-172-20-x-x centos]# cat /etc/environment
[root@ip-172-20-x-x centos]# sudo env

How to authenticate jenkins with aws directory services?

AWS has directory service which will create AD accounts to use with.
My jenkins server is hosted on an ec2 linux instance on AWS server.
Is there any way to set the jenkins to use the AD accounts to login with it?

Please help me on this.

active directory plugin seems to work only for our own hosted AD environment but not for AWS directory service.

amazon web services – Why does AWS EMR require 2 different security groups for Master and Core/Task nodes?

I am setting up an EMR job and finding that I must specify Master and Core/Task specific security groups. What is the point of having 2? If I run in client mode – I will only utilize the Master security group anyways. And I believe if I run the EMR job on cluster mode it should only utilize the security group of core/task is this not correct?

That is at least my understanding since when I choose between client or cluster mode it tells me this:

Run your driver on a slave node (cluster mode) or on the master node as an external client (client mode).

ms office – Using aws run command – document type powershell- not able to open a excel sheet, make some change and save it

I am trying to run a powershell script using aws runcommand (aws powershell) on windows machine. The powershell script downloads an excel file from S3 location, runs a vbscript which inturn opens this excel file, make changes and saves it in the system. I have already logged into the windows ec2 machine as administrator, and signed with my valid login and saved.

When I run this powershell script through aws runcommand powershell documentype, the powershell always open new microsoft excel and prompts for sign.

As per my understanding, aws runcommand connects to windows ec2 with system32 console and creates a new session to execute a command. My question is how can I have excel signed with my id and when excel application is opened, it doesn’t prompt for sign?

amazon rds – AWS RDS MariaDB dropping connection after CREATE TABLE with CHECK followed by CREATE INDEX

I’ve spun up a fresh MariaDB T2 micro instance with all of the default settings (have observed same behavior on t3-micro and t3-small).

Running this script:

    `checked` INT NOT NULL,
    a_column VARCHAR(64) NOT NULL, 
    CONSTRAINT pk_league PRIMARY KEY (id),
    CONSTRAINT `ck_checked` CHECK (`checked` IN (0, 1, 2, 3))

CREATE INDEX ix_test_a_column ON test (a_column);

Causes this error:

Error occurred during SQL query execution

SQL Error (08): Could not connect to address=( : Connection refused (Connection refused)

However, when I reconnect, the table test has been created, including the index.

No issue running the script on a local MariaDB 10.4 docker container, likewise no issue if I remove either of the CONSTRAINT ... CHECK or CREATE INDEX. If I replace the CREATE INDEX statement with SELECT 1; there is also no error.

Given that there is a difference in behavior between the docker db instance and the RDS instance, I’m hoping there might be some difference in configuration between the two that might explain the behavior on AWS and would appreciate any insight!

The server logs:

210215 7:38:57 (ERROR) mysqld got signal 11 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.

To report this bug, see

We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.

Server version: 10.4.13-MariaDB-log
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 174615 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x2b48cfb35f88
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 0x2b48a41cbdd8 thread_stack 0x40000
sql/*, char*, unsigned int, Parser_state*, bool, bool))(0x5582a9535d1a)
sql/, THD*, char*, unsigned int, bool, bool))(0x5582a9537655)

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0x2b48cfb6f620): CREATE INDEX ix_test_a_column ON test (a_column)
Connection ID (thread ID): 14

Optimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=on,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on,split_materialized=on,condition_pushdown_for_subquery=on,rowid_filter=on,condition_pushdown_from_having=on

The manual page at contains
information that should help you find out what is causing the crash.

amazon web services – Lots of spam in one Users AWS Workmail inbox

We run AWS Workmail for one customer which has multiple users an mailboxes.

In only one of the inboxes there is a lot of spam. It’s not an address such as info@ or similar.

Are there any settings which might be wrong? I did not exactly find any spam protection settings in AWS Workmail.

microservices – Topics best practices – AWS SNS and others

I’m designing a medium size project that will have few decoupled microservices.

I want to avoid costly architecture mistakes at the very beginning.

What I’m wondering (I googled and didn’t found any answer) is if SNS topic should be relatively generic (e.g. “orders-events-topic”) or rather there should be separate topic per each event (e.g. “order-created-topic”, “order-accepted-topic”, etc.).

I realize that “it depends” – nevertheless I’d like to make a mindful decision.